Add on request to VIPArcher's sliding menu animation

I'm using this script and i really like it, but it's weird to see the sliding animation only when you open the menu. I have zero knowledge in scripting, so i'm asking here: would it be possible to add the same animation but reversed when the menu is closing?

I've moved this thread to RGSS3 Script Requests. Thank you.

Script thread updated

Original thread: https://forums.rpgmakerweb.com/threads/add-on-request-to-viparchers-sliding-menu-animation.155298/