Jump to content
Search Community

hemanidesigns

Members
  • Posts

    4
  • Joined

  • Last visited

hemanidesigns's Achievements

  1. Thanks for your helpful explanation and the resources! I will definitely look into them.
  2. Thank you so much for your help! I looked over your codepen and looked up progress and reversed and am trying to understand them. I hadn't realized they are something you can do with gsap! I have a few questions so I can understand the solution if that's ok. menuTL.reversed(false).progress(0).clear(); is line that checks if the menu should be reversed , correct? Does progress (0) and clear set the timeline back to the beginning and clear the values so that the animation can know about the resize changes? Thanks again for your help!
  3. Thanks for your answer! I have a line of window.addEventListener("resize", CloseMenuOnResize), which calls OpenCloseMenu if the menu is visible, reversing the menu timeline. Is this what you meant? I'm still having the issue that when the menu timeline reverses, the menu is not returning to the same position.
  4. Hi! I'm currently trying to make a menu that slides in from the left. The menu would be set off the page, but not all the way. I've got the menu working on load, but I'm running into an issue when resizing. If I open menu and then resize while it is open, it does not move back to the same position when closed. I've been trying to find a solution but am unsure how to approach it. Any help would be greatly appreciated!
×
×
  • Create New...