SASHIKANTA Posted May 15, 2023 Share Posted May 15, 2023 I saw a page design which is made using GSAP, theirs a SVG image was masked on scroll how this is done ? Please see the website : https://www.accenture.com/in-en I have added code-pen, instated of the circle I want to add the XG svg for Masking. See the Pen bGmjvMJ by Sashikanta-Nayak (@Sashikanta-Nayak) on CodePen Link to comment Share on other sites More sharing options...
PointC Posted May 15, 2023 Share Posted May 15, 2023 Pop that mask into your SVG and scale it up enough that it covers the whole screen. Give it a try and we'll help with any GSAP related problems you encounter. Happy tweening. 2 Link to comment Share on other sites More sharing options...
SASHIKANTA Posted May 18, 2023 Author Share Posted May 18, 2023 Don't know how to do that. Link to comment Share on other sites More sharing options...
PointC Posted May 18, 2023 Share Posted May 18, 2023 There are a bunch of videos on YouTube to teach you how to use SVG masks. https://www.youtube.com/results?search_query=svg+masking 3 Link to comment Share on other sites More sharing options...
Cassie Posted June 15, 2023 Share Posted June 15, 2023 MDN docs?https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mask Link to comment Share on other sites More sharing options...
Solution SASHIKANTA Posted June 15, 2023 Author Solution Share Posted June 15, 2023 See this Pen Created By Me See the Pen oNQbmjL by Sashikanta-Nayak (@Sashikanta-Nayak) on CodePen 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