Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
avancamp

CustomEase might not be properly normalizing SVG path data

Go to solution Solved by OSUblake,

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 there,

 

I have the following SVG path data that I wish to use as a CustomEase. However, I think that CustomEase might not be properly normalizing this path:

M16,350C17.6667,361.8333,18.2157,421,26,421

When pasted into the Ease Visualizer, this is the result:

rtGefNF.png

 

This SVG path data was generated by my new ae-ease-to-gsap-customease script, so it's possible that my script just hasn't generated the correct SVG path data. However, it certainly looks correct, which is why I'm currently suspecting that this might be an issue in CustomEase.

 

Thanks for your time,

Alex

 

EDIT: For additional context, here's what this curve looks like in AfterEffects:

VitLMOs.png

Link to comment
Share on other sites

  • Solution

I'm not familiar with how the coordinate system AfterEffects works, but by looking at your screenshot, it appears to be starting in the bottom-left corner. For svg, the y-axis is reversed, starting in the top-left corner, so try flipping the y values.

Link to comment
Share on other sites

I'm not familiar with how the coordinate system AfterEffects works, but by looking at your screenshot, it appears to be starting in the bottom-left corner. For svg, the y-axis is reversed, starting in the top-left corner, so try flipping the y values.

 

Huh, yeah. That seems totally fix it. I'll patch my script tomorrow to account for this. Thanks!

Link to comment
Share on other sites

Yep, exactly right. Here's what yours looked like: http://codepen.io/anon/pen/GWPVwx 

 

It should resolve itself if you feed in a curve that starts lowest in the bottom left. It typically ends above and to the right, but it's okay if you make it return back to the x-axis (for an ease that goes back to the starting values). 

Link to comment
Share on other sites

Very cool! Thanks for sharing. There are plenty of folks who use GSAP and AE, so I'm sure this will be a very welcome tool for their workflow. 

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.

×