Jump to content
Search Community

Progressive animated lines & strokes drawing in SVG

Raistlin test
Moderator Tag

Go to solution Solved by PointC,

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 would like to ask for your help, support and advices regarding how to create progressive animated lines & strokes drawing

in GSAP using SVG.
 

Does anyone would have any idea how to start or what how to do such animation?

Many thanks,

Raistlin

Link to comment
Share on other sites

  • Solution

Hi Raistlin  :)

 

celli has posted some good links so you can learn the basics of the DrawSVG plugin.

 

I looked at the link you posted and I see some segments of the animated stroke go behind the man in the photo while others animate in front of him. If you're asking how to accomplish that effect, the short answer is masking part of the path.

 

For a more detailed explanation of the process, I just added a new post to the SVG Gotchas topic which has a write-up about how to approach that type of animation. You can read it here:

http://greensock.com/forums/topic/13681-svg-gotchas/?p=58229

 

Here's a direct link to the CodePen I made for that post which shows an animated stroke going around the subject of a photo.

 

See the Pen ZWEqdK by PointC (@PointC) on CodePen

 

Hopefully that helps a bit.

Happy tweening.

:)

  • Like 4
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...