Jump to content
Search Community

Shrimpy

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Shrimpy

  1. Hello folks, 

     

    I recently took a project referenced in post.

     

    I am encountering issues on using scrollTo function on anchor links.

    My expect behavior:

    - Click on the second link (goes to #section-3)

    - Animate and slides to (#section-3)

     

    Current behavior:

    - Click on the first link (goes to #section-3)

    - Stops at (#section-2)

    - Click on the first link again

    - Stops at (#section-3)

     

    It seems that my scroll event here causing the anchor link unable to work. 

     

    Any advices on how do I work this out? Thank you!

    See the Pen rbXaQL by whalesingswee (@whalesingswee) on CodePen

×
×
  • Create New...