I want that animation to make it after clicking the menu button. I tried if and function, but it didn't work out. Click here for code
if
function
Like this?
You need to move your menuAnim code into a click listener.
menuAnim
click
https://codepen.io/nisharg/pen/abvJxKL