Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
DigitalCardinal

Morphing a ClipPath

Recommended Posts

I've read other threads and it seems this is possible to morph the ClipPath.  However, the issue people have is with properly targeting the Paths and such.  I've tried so many variations, but the Shape isn't morphing.

See the Pen zQqxrN by DigitalCardinal (@DigitalCardinal) on CodePen

Link to comment
Share on other sites

I noticed a few problems:

  1. Your #p1pathB <path> had a typo - there was no "d=" before the path data string. That's a syntax error. 
  2. You forgot to load ScrollMagic :)
  3. It looks like you're just using #p1pathB as a reference for the end values, but you had it nested inside of the <clipPath> element. I'd take it out of there. 

Here's a fork that doesn't use ScrollMagic, but just shows the path morphing: 

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

 

Does that help? 

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