Jump to content
Search Community

Weird behaviour when using scrolltrigger and a hover transition

NickWoodward test
Moderator Tag

Recommended Posts

So I've a card who's opacity/y position animation is triggered using scrolltrigger. The same card has a basic hover transition using a pseudo element.

The problem I've got, which can be seen in the attached .gif, is that the card image/text remains in front of the pseudo element until the gsap animation has completed. I tried to replicate this in the codepen, with no luck, but it's a very similar set up.

I know it's hard to diagnose problems without a working example, but I was hoping someone had an idea of what could be the issue just by seeing it?

Thanks!

 

 

Wow, that's a big video 😄
 

See the Pen rNwqXXy?editors=1111 by nwoodward (@nwoodward) 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...