Jump to content
Search Community

(Help Needed) SVG Multiple Path Morphing

Mendax47 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 Was reading This Tutorial.. https://codepen.io/AlaricBaraou/post/single-path-morph-svg

And was trying on codepen.. how ever i was wondering if i want morphing anything complex which have multiple shape at same group..

 

an example:

 

let's assume that i want to morph 135763.svg svg to 135637.svg . then i have to make it to a single path (as that tutorial just said) then i will lose my all color and i will have only one fill color as i have only one compound shape... so if i want to make a morph between two svg without making them a single shape... how i will do it...?

Link to comment
Share on other sites

That tutorial doesn't apply to what you are trying to do. You will need to morph multiple shapes, and you will need to animate fill color as well based on what are you morphing into.

 

Take a look at demo by @PointC,

 

See the Pen mmMXQK?editors=0110 by PointC (@PointC) on CodePen

 

This tutorial will help you write timelines using functions,

 

https://css-tricks.com/writing-smarter-animation-code/

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