Jump to content
Search Community

GSAP simple stagger animation slow the first time

ti-sign test
Moderator Tag

Go to solution Solved by ti-sign,

Recommended Posts

Hey there, gsap novice here

 

I have a simple fade-in animation on my site. However, the first time the animation loads, the whole site janks and the animation doesn't look good. All subsequent times look extremely smooth. I've tried to recreate it in a codepen, however, there the code seems to work flawlessly. I have no other scrollTrigger or gsap animation on any of the here targeted elements. Did anybody already have that problem and see a solution?

 

Thanks in advance!

See the Pen NWyEwoa by tisign (@tisign) on CodePen

Link to comment
Share on other sites

  • Solution

Okay, imma hit myself in the head, but I leave this online if anybody else stumbles upon this.

 

Do not load uncompressed images during developement. GSAP doesn't seem to like it if it has to animate 21MB of images all of the sudden.

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