Danraffe
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Danraffe
-
-
Hello,
I am new to GSAP and am wondering if it is possible to translate an object as a function of the tweens duration?
For example, if I wanted an image to "jump" in a single tween, could I call something like
gsap.to(".img", {y: () => {Math.sin(current duration * Math.PI)}, duration:1}
If so, how might I do that?
Using .to to translate an image as a function of the Tween's duration
in GSAP
Posted
Yes! Just what I was looking for, thank you!