TCO Posted September 20, 2022 Share Posted September 20, 2022 Hi there, I use Gsap to add some animations and it's "freezing" a little bit sometimes in the image and text animation, especially on my iPhone 13 mini. You can see my .js on the codepen, can you see what I'm doing wrong? Thanks! Link to comment Share on other sites More sharing options...
Solution mvaneijgen Posted September 20, 2022 Solution Share Posted September 20, 2022 Your pen wasn't doing anything, so that will make it really hard for someone to come in and debug what is going on. I've tweaked it a bit to get something working, but it doesn't seem to do the same thing as in your live site. I've add some comments in the pen at points where I noticed somethings, eg your tweeting x with a percentage, xPercent is made for that. What you could also try is add will-change: transform (will-change: PROPERTY_THAT_WILL_CHANGE) to your CSS. I also see a lot of other animations on your site, you could try disabling them one by one to see which one is the culprit. You could also try disabling individual tweens to see if one is miss behaving See the Pen zYjzZbK?editors=0011 by mvaneijgen (@mvaneijgen) on CodePen Post back if you found anything and we love seeing minimal demos where the issue is clearly shown. 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