Jump to content
Search Community

extrapolate paths & clamp

tailbreezy test
Moderator Tag

Recommended Posts

Hello,

 

Yesterday I was playing with morphSVGs and wanted to get the morph path data at a certain progress.

 

Today, I am wondering what options are available in GSAP for extrapolating a path beyond the clamp values (e.g the actual path data).

 

As you can see from the example the dragging causes the dragged element to extrapolate beyond the actual paths used.

If you drag slowly it stays within bounds, but if you drag quickly you get extrapolated paths. Which what I am after.

 

How can you get such a result in GSAP?

 

See the Pen mdrgwLb by dadacoded (@dadacoded) on CodePen

Link to comment
Share on other sites

Hey Zach,

 

That is a great question. Now that you mention it I have checked the path d in the DOM and it is not overextending in either direction. Seems like there is no extrapolation happening and it is closely related to my question yesterday, in which Jack showed me an example of applying custom ease curve to appear overly elastic.

 

As for React and ReactSpring, I just gleaned a bit to get a hold of the basic ideas, unfortunately reading typescript syntax makes my head hurt and I cannot easily understand the source code. I love the feel of react-spring animations though so I am trying to bridge my knowledge gap.

 

 

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