Jump to content
Search Community

TouchPotato

Members
  • Posts

    1
  • Joined

  • Last visited

TouchPotato's Achievements

  1. Im making a responsive navbar using GSAP and ive noticed that when i switch to mobile view to desktop view then back to mobile view it doesnt remove the css and animations applied from gsap and media queries. If you load the codepen you can see that there is a nav bar, if you shrink the browser to smaller then 900px width you can see that it turns into a burger icon and if you click on this is does a nice animation to expand the burger for mobile view, the problem is that when expanding the view back to normal (more then 900px) it still hides the navbar for some reason. Ik that i can use vanila js to apply and remove a class with all the styling i want but i feel like there should be a way to use gsap aswell. Thanks!
×
×
  • Create New...