Jump to content
GreenSock

tahirw

Members
  • Posts

    2
  • Joined

  • Last visited

tahirw's Achievements

  1. 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
×