Jump to content
Search Community

Some elements are not shown in next.js?

sagar_dev test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Yep, never mix them up.

 

GSAP basically updates the styles of an element in during a specific amount of time (the tween's duration). So if you are mixing GSAP and CSS transitions as soon as GSAP updates a style (something GSAP's ticker does 60 times per second) CSS will take over and animate that change.

 

We try to avoid CSS transitions completely around here (for obvious reasons ;) ), but if you want to use them be 100% sure that the property being animated using CSS transition is not the same as one being animated by GSAP to avoid the aforementioned collision and conflict.

 

Hopefully this clear things up.

Good luck with your project and Happy Tweening!

  • Like 1
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...