Jump to content
Search Community

Tweening Lines Canvas

bigbeats01 test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I'm brand new to javascript animation.  Can I use this library to tween the drawing of lines (lineTo) on the canvas element?  Is there another library out there better suited for that or should I just use plain javascript and requestAnimationFrame ?

Link to comment
Share on other sites

Hi and welcome to the forums.


I'm not a canvas expert but one choice could be use an onUpdate call to update the pen position so to speak, but I can't remember such experiment here in the forums at least.


What I can recommend you is to take a look at the kinetic plugin that of course works with the KineticJS framework. I've seen very amazing stuff done with it and combine with GSAP I'm pretty sure you can get very good results.


In this posts Carl gives a little more info on how the plugin works and you can see a couple of very good samples using it:






Hope this helps,



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...