Jump to content
Search Community

Morph animation not working

Arif59 test
Moderator Tag

Go to solution Solved by Dipscom,

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

Hey guys! I'm new to this community and I'm not sure if this is the right place to post this but -- I'm having trouble morphing shapes. I've followed the Youtube tutorial but it just isn't working. Could someone kindly take a look? All I'm trying to do is change the letter from "A" to "R". Thanks in advance!

See the Pen qZzzLY by Arif59 (@Arif59) on CodePen

Link to comment
Share on other sites

  • Solution

Hi Arif59,

 

Welcome to the forums! This is indeed the place for your GSAP related questions!

 

Thanks for the demo, it helps a lot.

 

MorphSVG works by changing the <path> data of an element so, you have to specifically target it. In your case, the id's you were using were at the <g> element. If you simply move the id's into the <path>, you will see that it works as expected.

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