0

How do I make use of jquery to animate my menu bar

How do I make use of jquery to animate my menu? I want to make sure the menu bar appears whenever I click the menu https://code.sololearn.com/WN1JJ1nIW7af/?ref=app

10th Aug 2019, 6:02 PM
Abass Nurudeen
Abass Nurudeen - avatar
2 ответов
0
and make the menu bar disappear when i click the menu
10th Aug 2019, 6:05 PM
Abass Nurudeen
Abass Nurudeen - avatar
0
Menus like this are harder to animate size you don't know the actual width. You could inspect it or calculate it but you shouldn't since it can change when longer items are added. From 0px width, you can return the original width by setting it to "auto". But you can't animate "auto" values. https://code.sololearn.com/Wp4fP3S8XclK I added css transition to it and made the overflow hidden.
10th Aug 2019, 11:17 PM
Toni Isotalo
Toni Isotalo - avatar