Jump to content
Search Community

greatex

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by greatex

  1. Hi,

     

    I am new to GSAP. I try to do overlapping setions with menu. Everything works like I expected expcept menu anchor links. If I am on the top of the page and I click on some link. everything works perfect. Problem is when I am at the bottom of the page and I click on some link in the menu. It takes me to the right section but this section is overlapped with section before.

     

    My idea was somehow reset or unpin section when leaves from the viewport, but I cant find the right code for it.

     

    I tried to find any solution on forum, but all topics what I have found solve more complex problems, but none can be used for this easy task.

     

    Thank you for your ideas.

    See the Pen OJRWZQz by langimaster (@langimaster) on CodePen

×
×
  • Create New...