Jump to content
Search Community

Cubic bézier curves smoothing effect

howdu test
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

I don't quite understand your question or your goal. 

 

Are you saying that you only want the very bottom curve of your white shape to morph (whereas currently the upper right corner also appears to shift)? If so, you can alter the shapeIndex (feel free to use the findShapeIndex() utility, like http://codepen.io/GreenSock/pen/LpxOqR) or you can just make sure that your start/end shapes have the same number of points and that you only move the points along the bottom. Currently, it looks like you've got mis-matching numbers of points, so MorphSVGPlugin must fabricate some points for you. 

Link to comment
Share on other sites

Morphing is good for changing from one shape to another, but a wave is hardly a static shape. It might look better to actually draw a wave without morphing. It's not as hard you may think.

http://greensock.com/forums/topic/15270-animating-waves-with-gsap/?p=66401

 

To animate the wave based on some other factor, like scrolling, you could use the ModifiersPlugin. Check out how I'm animating the strength of the wave from 0 to 1.

See the Pen XNaGzp?editors=0010 by osublake (@osublake) on CodePen

 

.

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