greensock / GSAP

GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
https://gsap.com
19.56k stars 1.72k forks source link

Own Ticker #275

Closed rtalon83 closed 6 years ago

rtalon83 commented 6 years ago

I would like to set my own ticker requestanimationFrame in Tweenlite/TweenMax. Is it possible? Thanks!

jackdoyle commented 6 years ago

Are you saying that you want to take control of the internal ticker that drives all of GSAP or are you asking if you can attach a listener to that ticker? The latter is entirely possible:

TweenLite.ticker.addEventListener("tick", yourFunction);

But if you want to take control of the ticker and update the time/frame values manually, no, that isn't possible.