Jump to content

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

Morphing through SVG group elements

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.