Jump to content
Search Community

Opacity animation in react not working as expected

guano test
Moderator Tag

Recommended Posts

I'm trying to do a simple onScroll animation with ScrollTrigger but its driving me insane for 4h.

One of them works as intended and fades the content, the other one just sets the elements opacity to 0 as soon as it triggers..

When i then scroll back it starts animating from 0 opacity to 1, but when I scroll down it justs sets the opacity straight to 0 no fading.

Im going insane with this, any tips? 

Thanks anyone for reading

gsap.png

Link to comment
Share on other sites

  • guano changed the title to Opacity animation in react not working as expected

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...