Merkif Posted December 10, 2021 Share Posted December 10, 2021 Hi, How can I scale the svg mask when scrolling? See the Pen dyVpYVg by Merkif (@Merkif) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted December 10, 2021 Share Posted December 10, 2021 Just hook up your scale animation to ScrollTrigger. gsap.set("path", { transformOrigin: "center center" }) gsap.to("path", { scale: 2, scrollTrigger: { ... } }) 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