Jump to content
Search Community

SVG Clip-Path ignoring movement

designedaudio test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

  • Solution

What you're doing right now would not work, because the clip is on the element that you're moving, so if you move the element the clip path also moves, so you have to add the clip path to a element that isn't moving. I've wrapped your circles in a <g class="clipper"> and removed the clipper class from the individual circles. Hope it helps and happy tweening! 

 

Sidenote: any reason why you're using TweenMax, but with the new GSAP v3 syntax? Everything in GSAP V3 has been consolidated to just use gsap.to or gsap.from instead of TweenMax or TweenMin.

 

See the Pen PoxOjLv by mvaneijgen (@mvaneijgen) on CodePen

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