Jump to content
Search Community

Missing something obvious with MorphSVG?

samuelhigginson test
Moderator Tag

Recommended Posts

Yep, Craig is right. Also...

  1. Don't use percentage-based widths/heights on that <rect> in order to make it cleanly convertible. Your viewBox is set to 1920x1302, so just use those values. 
  2. Your end shape is way off the bottom of your viewBox. I assume you didn't mean to do that(?) It's how your artwork is built - it has nothing to do with GSAP. 
  3. It's probably a good idea to get in the habit of registering the plugins you use. GSAP tries to automatically do it for you when it can, but in some cases that's impossible (hence the good habit to do it yourself). 

Here's a fork of your demo where I slowed down the morph quite a bit and used a different ease so you can notice what's going on better: 

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

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