cotyhsu
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by cotyhsu
-
-
Hi everybody,
So I'm playing around the latest GSAP SrollToPlugin and trying to recreate this sample published on the site:
The issue I occurred is when I click on the navigation, the content will jump back to the top first then do the scroll, I found if I use the <button> instead of <li> then it works just fine. Does anyone knows what cause this issue? Thanks in advance.
Here's the code:
https://jsfiddle.net/cotyhsu/6rrdt6kw/3/
See the Pen LkOrKY by GreenSock (@GreenSock) on CodePen
-
Hi Carl,
Thanks for your input!
Best,
Coty
-
Hi guys,
So if I have to stick with v11, how should I modify this line?
tween.progress(Math.max((mouseX-startMouseX)/(d5.x-startMouseX), 0));
I tried
tween.progress = Math.max((mouseX-startMouseX)/(d5.x-startMouseX), 0);
and it is not working (undefined property), wondering if anyone have thought on that, thanks in advance.
Regards,
Coty
ScrollToPlugin issue
in GSAP
Posted
Ah that's right... thanks for the help!