I'm trying to get a animation on JavaScript, for example imagine a box. when you click the box I want it to open, then when you click it again i want it to close. sort of like playing a mini mp4 video of a box opening and closing. how do i do this?