Jump to content
Search Community

Morph Phail

bigmamainthemud 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'm just trying to implement my own morph and I keep getting the same error:


"invalid morphSVG tween value"


 

Can someone tell me what I am missing or overlooking? This is someone else's code mostly but I'm trying morph for the first time.. just can't get it to work.

 

Thanks!

See the Pen bZmGjw by bigmamainthemud (@bigmamainthemud) on CodePen

Link to comment
Share on other sites

Welcome to the forums. 

 

It looks like you just forgot to load the MorphSVGPlugin, so TweenMax had no idea what to do with "morphSVG" (it was actually trying to tween a literal property on your object called "morphSVG" which, of course, doesn't exist). Here's a forked version that loads a codepen-only version of MorphSVGPlugin: 

http://codepen.io/anon/pen/qNJBww?editors=1010

 

Important: MorphSVGPlugin is a membership benefit of Club GreenSock. You can download the "real" version of the plugin from your Account Dashboard once you're a member (Shockingly Green or higher). http://greensock.com/club/ The "real" version doesn't limit you to a specific domain name and there's no "phone home" code in it at all, nor anything that would disable it for any reason. 

 

Happy tweening!

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