Jump to content
GreenSock

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

Morphing through SVG group elements

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'm trying to create a function that would morph through a series of paths to reach destination. The codepen below tries to do that, but does not move.

See the Pen oygzxd by fvila (@fvila) on CodePen

 

I did a function with just one intermediary (no group) and it works:

See the Pen pKoMPN by fvila (@fvila) on CodePen

 

Link to comment
Share on other sites

Your logic was correct, but you were trying to animate element with id 'shape' but your svg has element with id 'from'.

 

See the Pen QxwGYx?editors=1010 by Sahil89 (@Sahil89) on CodePen

 

  • Like 4
  • Thanks 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.

×