ryan_brwn Posted December 7, 2021 Share Posted December 7, 2021 Hi all! I have curious question. Does anybody know why the code below would work perfectly fine on Codepen and also work on my local machine when I'm loading GSAP via CDN, BUT when I load GSAP locally via a copy gsap.min.js the keyframes doen't seem to acknowledge the staggers (I have a screen recording attached below). let tl = gsap.timeline(); tl.to( document.querySelectorAll('.box'), { keyframes: [{ alpha: .25, duration: .045 }, { alpha: 1, duration: .045 }, { alpha: .25, duration: .045 }, { alpha: 1, duration: .045 }, { alpha: .25, duration: 1, ease: Sine.easeIn }], stagger: .5 }, 2).to('.box-04', { rotate: 360, duration: 2, alpha: 1, ease: Expo.easeOut }, '+=.5'); gsap-locally-loaded.mp4 See the Pen f4c38c451e6454042c6f8c799c59d4bb by ryankbrown (@ryankbrown) on CodePen Link to comment Share on other sites More sharing options...
Solution Cassie Posted December 7, 2021 Solution Share Posted December 7, 2021 Heya! Are you using the same version of GSAP for all of them? 1 Link to comment Share on other sites More sharing options...
ryan_brwn Posted December 7, 2021 Author Share Posted December 7, 2021 I am! I'm using version 3.8.0 on the CDN and also locally! Link to comment Share on other sites More sharing options...
GreenSock Posted December 7, 2021 Share Posted December 7, 2021 That sounds very odd to me. Can you create a minimal demo and zip it and attach it here? It's super difficult to troubleshoot blind. Once we're able to reproduce it, I'm sure we'll be able to give you some solid advice. 1 Link to comment Share on other sites More sharing options...
ryan_brwn Posted December 7, 2021 Author Share Posted December 7, 2021 haha I'm having trouble reproducing the error in a minimal demo myself! Maybe I just need to try and see if any other parts of my code are interfering with gsap or something. I thought I'd post here to see if something similar had happened to anybody else. Thanks for the replies! Link to comment Share on other sites More sharing options...
ryan_brwn Posted December 8, 2021 Author Share Posted December 8, 2021 I figured it out! I'm an idiot. My build process was somehow grabbing GSAP version 3.5.0 instead of updating it to 3.8.0 and it didn't occur to me to check the output. Thank you all for the help! 2 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