Jump to content
Search Community

MorphSVG Problem: Animation not working properly

eks93 test
Moderator Tag

Recommended Posts

Welcome to the forums, @eks93

 

Can you please provide a minimal demo? We can't effectively troubleshoot by just looking at a screenshot of an excerpt of code. A CodePen would be great. You can fork this demo that already includes all the bonus plugins for convenience: 

See the Pen aYYOdN?editors=0010 by GreenSock (@GreenSock) on CodePen

 

Just glancing at your code, I'm guessing that one of the problems is that a lot of your morphSVG values are missing the "#" or ".", indicating an ID or class selector. In other words, it's invalid selector text. "end-two", for example, instead of "#end-two". 

 

You also seem to have some invalid code, like with too many parameters. For example, 

tl.from("#start-two", 
  {alpha: 0, duration: 0.25}, 
  {alpha: 1} // <-- WHAT IS THIS? Invalid. The 3rd parameter should be the position parameter.
)

 

I'm also curious about a few things: 

  1. Why are you animating alpha instead of opacity? 
  2. How did you get access to MorphSVGPlugin? I don't see a Club GreenSock membership associated with your account. It's a members-only plugin :)
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...