Based on the OneDrive site, where you have a drop-down menu on the left side that when clicked on the OneDrive div it loads the menu down; and if you clicked it back in the first state, which is the collapsed menu.
I'mtryingtomakethisanimation,onlyusingjustJavascript.Aftermuchresearch,Isawthatitisnotadvisabletousesometimertodothesetypesofanimations.TheRequestAnimationFrameisusedforthis.Followthe code where I've already been able to do much of what I want. I think what's happening is that I can not stop the animation in due time, and as a consequence, I can not properly handle cancelRequestAnimationFrame.
In the code, what I am trying to do is that when I click on the square it goes down. When you click it again go up. And just make these two moves, so that I can then make a menu based on it.
Thank you.