Jump to content


drawing a curved line along the tweens points in a timeline

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

Hi :-)


I have a timeline which contains several tweens of a single dom element.  Is it possible  to draw a line along the tweens x,y coordinates in this timeline, and, if possible, have the line drawn as a curve?  


Thanks !



Link to comment
Share on other sites

Hi Elior,


You could give the technique discussed in replies 2 and 3 in this post:




Carl made a sweet example as well.


Keep in mind though that this won't work in IE8 or older, nor in Safari 5 and older. IE 8 doesn't support SVG and while safari 4 and 5 do support inline SVG they don't support the 1.1 spec of SVG which includes the strokeDasharray. This method makes all the magic happen.



Link to comment
Share on other sites

Hi Rodrigo,


Thanks for such a quick answer :-)  





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.