Jump to content
Search Community

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

eugene.bredyuk
Posted

Dear all,

I've generated 2 svg's via Adobe Illustrator, pasted them as in tutorial.

However, they're not animating.

 

I'm getting the next message in the console: invalid morphSVG tween value: #from

 

Can you please help?

What's wrong with the code?

 

Thanks!

See the Pen JKVWOA by eugene-bredyuk-1471593269 (@eugene-bredyuk-1471593269) on CodePen.

Posted

Hi and welcome to the GreenSock forums,

 

Thanks for the demo.

 

Just so you know, you can grab a CodePen-friendly version of MorphSVG from any of our MorphSVG demos:

 

or http://codepen.io/collection/naMaNQ/

 

any club plugin from: http://codepen.io/GreenSock/pen/OPqpRJ

 

The main reason why you weren't seeing any animation was because the shape you were morphing #to had its visibility set to hidden using CSS. I think you wanted #from to be hidden.

 

here it is morphing:

 

 

http://codepen.io/GreenSock/pen/mEgwJA?editors=0010

  • Like 1

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