Jump to content
Search Community

Scroll animation along a bezier path

philgwill
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

Posted

Here's a codepen of the animation I'm using

See the Pen VajVNW by anon (@anon) on CodePen.

 

I've seen quite a few examples like the one you've shown but I can't seem to get it added in. I just need a line to follow behind the plane as it moves

Posted

tweaking the example Craig provided you can add some set()s to the timeline to toggle the opacity of the dots as the animation plays:

http://codepen.io/GreenSock/pen/zqmWdv

 

 

However, using SVG for the path is really the best as you can tap in to DrawSVG's path-revealing nature:

http://codepen.io/GreenSock/pen/jEEoyw

 

If you use DrawSVG in conjunction with svg masking you can reveal any style of stroke like:

http://codepen.io/GreenSock/pen/YwawOX?editors=0010

 

And if you throw MorphSVG into the mix you can use an svg path to define the bezier points for a bezier tween!

http://codepen.io/GreenSock/pen/obQbjb?editors=0010

 

Both DrawSVG and MorphSVG are bonus plugins for Club GreenSock members: http://www.greensock.com/club

  • Like 2
Posted

See the Pen zqmWdv by GreenSock (@GreenSock) on CodePen.

 

that's exactly what I want to happen but I can't figure out how to get it into the ScrollMagic plugin so it does that animation as you scroll

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