Semih Posted September 20, 2023 Share Posted September 20, 2023 Hello, I saw such an animation, but I couldn't figure out how to do it. How can the image turn into a triangle when going down? dsfffdfd.mp4 Link to comment Share on other sites More sharing options...
Rodrigo Posted September 20, 2023 Share Posted September 20, 2023 Hi, With GSAP you can tween the clip-path property of a trapezoid(or rectangle, or any other 4 point figure): https://bennettfeely.com/clippy/ Here is a simple example: See the Pen QWJBjRO by GreenSock (@GreenSock) on CodePen Hopefully this helps. Happy Tweening! 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