Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Can I use the JavaScript version of GSAP for canvas objects or 3rd party tools like EaselJS?


GreenSock
You can animate ANY numeric property of ANY JavaScript object – it’s not just for DOM elements. So yes, you can animate canvas objects, EaselJS assets, and pretty much anything JavaScript-related. In fact, GSAP even has an EaselPlugin to make it easier to animate EaselJS properties. If you need to run logic after each refresh (like to redraw things on the canvas), either use an onUpdate on the individual tween/timeline or add a “tick” event listener to the core Ticker that drives the platform.




×