Jump to content
Search Community

Animating an SVG *out* of a clipPath with Greensock

cooganb 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

Hi there! I'm really excited about using Greensock, but I'm pretty new to both GSAP and SVG animation.

 

I'm trying to build an animation where one shapes disappears behind an object and the other appears out from the same object. The effect would be one object "transforming" into the other behind an object (the Codepen makes it more clear). I'm trying to use clipPaths to do it, but I can't tell if I'm animating it correctly. It might be an issue with my CSS, I can't tell!

 

The first CodePen attached is what I have so far with the clipPaths. The second linked below is with the clipPaths removed:

 

See the Pen vqLLQg by cooganb (@cooganb) on CodePen

 

Any help would be much appreciated!

See the Pen WqrbNO by cooganb (@cooganb) on CodePen

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