Share Posted June 10, 2022 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 More sharing options...
Solution Author Solution Share Posted June 10, 2022 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 More sharing options...
Share Posted June 10, 2022 GSAP doesn't really care - it's just the browser that is choking on all that loading/decompressing/memory allocation work. Glad you figured it out. Please don't hit yourself in the head. 🤕 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now