Jump to content
Search Community

Gradually hide text from left to right on the background image

DuncN test
Moderator Tag

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...