ouadielim Posted July 30, 2020 Share Posted July 30, 2020 Hi, I would like to achieve the following animation but I'm not sure what I'm missing: - The Pink shapes need to move inside the Blue shapes indefinitely to show some motion. I used clip path to get the Pink shapes within the Blue shapes, but after applying a Tween on them, they "overflow" the clip path. Any ideas? Thank you! See the Pen VweJNwd by olimouni (@olimouni) on CodePen Link to comment Share on other sites More sharing options...
PointC Posted July 30, 2020 Share Posted July 30, 2020 Hi @ouadielim Welcome to the forum. The problem is you're moving the clip-path group. You need to move the paths inside the clipped group. gsap.fromTo( "#clipInFooterShape1 path", 9, { x: 100 }, { x: -200, repeat: -1, yoyo: true } ); See the Pen bd8f3ce625237b788f6f54f208f3279e by PointC (@PointC) on CodePen Happy tweening. 2 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