Jump to content
Search Community

I want to animate a svg line to a bumped curve on scroll

codechirag test
Moderator Tag

Recommended Posts

Hi,

It's not really clear to me which part of the animation you have trouble with: the line morph, highlighting the path, moving the highlight segment etc...

 

Regardless, it's a pretty neat effect.

 

With GSAP's available tools it's all possible. 

 

Here is a demo with enough code to get you started:

See the Pen WNBVmwB?editors=0010 by snorkltv (@snorkltv) on CodePen

 

The reference site uses a masked path but I'm not sure how much of that site you intend to copy.

I copied the exact stroke d attributes from the site's source code for this demo.

 

 

 

 

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