Shrimpy
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Shrimpy
-
-
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
Unable to use anchor scrollTo link on Scrollmagic + Greensock
in GSAP
Posted
Wow! Thank you! I spent tons of night thinking on how to work this out, and you just solved it like a snap!
The solution was brilliant! I was able to learn something from it.