DuncN Posted May 30, 2022 Share Posted May 30, 2022 Hello, I've been using gsap for some time now, it's really cool & powerfull tool! I'm looking for a solution as I'm a bit stuck. I'd like to hide the text using a div (or anything else). I don't have a desired effect example, though if you look at my code sandbox you'll see how I'd like to have it done. https://codesandbox.io/s/shy-thunder-mmeq13?file=/src/App.js With a current behaviour, the invisible div is sliding over the text and covers it completely. However, it does not make the text to disappear. PS. I've looked at other gsap topics and unfortunately wasn't able to find an answer to that. Also I'm sorry, not used to codepen, so I've added codesandbox instead. See the Pen App.js by s (@s) on CodePen Link to comment Share on other sites More sharing options...
PointC Posted May 30, 2022 Share Posted May 30, 2022 Hi @DuncN Welcome to the forum. Just my two cents, but I'd probably use a clip-path for that. See the Pen OJQvXqJ by PointC (@PointC) on CodePen Happy tweening. 2 Link to comment Share on other sites More sharing options...
DuncN Posted May 31, 2022 Author Share Posted May 31, 2022 hey PointC, That's very helpfu, thank you for that! Exactly what I was looking for! 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