T
9
c/css-battle-tacticseric_morgan59eric_morgan595d agoProlific Poster

Why does my CSS animation always look janky on Safari

Spent 3 hours last night on a smooth parallax scroll effect that worked perfect in Chrome and Firefox, but Safari turned it into a stuttery mess. Ended up ditching the whole animation and just using a static gradient instead. Anyone found a reliable workaround for this?
2 comments

Log in to join the discussion

Log In
2 Comments
faith_smith
Did you catch that article on CSS-Tricks about the whole Safari rendering thing? Apparently Safari handles `will-change` and `transform: translateZ(0)` differently than Chrome, so maybe try adding `-webkit-transform: translateZ(0)` to your animated elements before the transform. I read somewhere that Safari's GPU compositing kicks in only if you explicitly force hardware acceleration that way.
4
wyatt_fox68
Does the ordering of those properties in the cascade matter for Safari to actually use them?
3