PinkMeNow Posted September 6 Share Posted September 6 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 More sharing options...
mvaneijgen Posted September 6 Share Posted September 6 There is nothing called #clippath or #clippath-1, so your clip-path don't work, took me a while to figure out. Below I've got something working, but I'm not sure what it is you want to do. Hope it helps and happy tweening! See the Pen NWZedox?editors=1010 by mvaneijgen (@mvaneijgen) on CodePen Link to comment Share on other sites More sharing options...
PinkMeNow Posted September 6 Author Share Posted September 6 Imagine a pink shape is moving from right to left and when it starts overlapping light gray shape, cross section of both is colored as dark gray. Link to comment Share on other sites More sharing options...
Solution mvaneijgen Posted September 6 Solution Share Posted September 6 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! See the Pen gONZWgX?editors=1010 by mvaneijgen (@mvaneijgen) on CodePen Link to comment Share on other sites More sharing options...
PinkMeNow Posted September 7 Author Share Posted September 7 Thats exactly what Im looking for. Im just trying to figure out how to do this type of masking using Adobe Illustrator. Link to comment Share on other sites More sharing options...
mvaneijgen Posted September 7 Share Posted September 7 There should be just a 'mask' option. https://www.svgator.com/help/getting-started/creating-masks-in-adobe-illustrator Good luck with the project. Link to comment Share on other sites More sharing options...
PinkMeNow Posted September 7 Author Share Posted September 7 I figured it out thanks to your guidance. Eventually I made it using only one mask. Check my initial example. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now