Jump to content
Search Community

Choppy animation in Safari

Caroline_Portugal test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Try adding svg * { will-change: transform; } or at least to the elements that that have their transforms goings to change. Is it choppy in Codepen or also in you live site? Because if It watch this in the debug view in codepen on Safari Version 17.2.1 it is perfectly smooth. 

 

Some side notes 

  • TimelineMax hasn't been used since version 2 and we're currently at version 3.12.5! https://gsap.com/resources/3-migration/
  • Instead of rolling your own break points in Javascript check out https://gsap.com/docs/v3/GSAP/gsap.matchMedia()/ has a lot of niceties build in when working with GSAP
  • You can add all your timelines in to a main timeline and then you can call mainTL.play() or .pause()
  • If the text in the image is not going to change anymore, I would look in to rendering out .png (or maybe even .gif) and see how much bigger or smaller they are then your SVG, this might also improve performance, if that is still an issue. 

Hope it helps and happy tweening! 

  • Like 1
Link to comment
Share on other sites

  • Solution

Yeah, that choppiness has nothing to do with GSAP - welcome to the world of Safari rendering problems. Safari is notorious for really bad rendering problems, sluggishness, and odd behavior. You might want to consider animating PNG images with transparency rather than SVG because you're putting a LOT of pressure on the CPU for fabricating all those pixels. Raster images are much easier for the browser to push around. 

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