Jai
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Jai
-
-
Hey thanks, will try to keep the pen size down. I was trying to immediately adjust the left-to-right animation when scrolling happens and then continue the animation. Do you recommend invoking individual Tweenlite instances for this instead of a timeline, or perhaps the updateTo parameter?
-
-
setTimeout(()=> { TweenLite.to(window, 2, {scrollTo:{y: 200}}); }, 0);
Actually my issue was that I was cloning a lot of elements in the DOM, so the scroll fired before the DOM had finished cloning. Enclosing this in a setTImeout ensured that this fires all the time.
- 1
-
Ah rookie mistake. Thanks Jack.
- 1
-
Adjust Timeline Dynamically based on scrollOffset
in GSAP
Posted
Ah many thanks for the help, I wasn't aware of those methods thanks for highlighting them.
I accomplished this in the end by animating an object and updating the object's values using UpdateTo. (Scroll while animating to see values update)
See the Pen ZRqMxd by j2is (@j2is) on CodePen