Jump to content
Search Community

Trying to move clip path along X axis

PinkMeNow test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

Im trying to move clip path inside SVG along x axis while element that is inside clip path to be cliped by clip path and stay in position - in order to make a layered effect. Im not sure if I described it correctly.
Or is there any other technique to achieve this.
 

This is my CodePen

 

See the Pen VwJqPpd by drol (@drol) on CodePen

Link to comment
Share on other sites

  • Solution

I don't have time to fix your whole SVG, but I did half. You need two clipPaths for each element and the one for the overlapping element stays still and the right shape and its mask move together with the overlapping shape. 

 

This is what it looks like in my design program "Affinity Designer". Hope it helps and happy tweening! 

image.jpeg.63be9941708fd9689f087127d126ab02.jpeg

 

See the Pen gONZWgX?editors=1010 by mvaneijgen (@mvaneijgen) 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...