Jump to content
GreenSock

beamish

drawing a curved line along the tweens points in a timeline

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 !

 

Elior

Link to comment
Share on other sites

Hi Elior,

 

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

 

http://forums.greensock.com/topic/8510-animating-svg-paths-within-a-timeline/

 

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.

 

Rodrigo.

Link to comment
Share on other sites

Hi Rodrigo,

 

Thanks for such a quick answer :-)  

 

Cheers,

 

Elior

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