tahirw
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by tahirw
-
-
I want to manipulate my img when its going backward/forward for example like this, is this possible?
if(yoyo is moving forward){ img.addClass('bg-green') }else{ img.addClass('bg-red') }
my current code is like this:
const tween = gsap.timeline() tween.to( "#cart1", { duration: 5, ease: "linear", motionPath: { path: "#cart_path", align: "#cart_path", autoRotate: true, alignOrigin: [0.5, 1], }, repeat: -1, yoyo: true, }, "start" )
Thanks in advance
is there an event for indicating when the yoyo is going backward or forward?
in GSAP
Posted
Thank you so much its working![:D :D](https://gsap.com/community/uploads/emoticons/default_biggrin.png)