Massively improve JS animation smoothness in Safari with one line of CSS
I thought I'd share this as it might be useful. Including the following CSS can massively improve the smoothness of JS animations in Safari desktop and mobile. It also solves weird flickering issues on iPad/iPhone Safari. Don't know why it works but it does and the improvements, at least for my web app, were spectacular.
html * { -webkit-backface-visibility: hidden; }
6 comments
[ 3.4 ms ] story [ 28.3 ms ] threadhtml { -webkit-backface-visibility: hidden; } should do
glEnable(GL_CULL_FACE); glCullFace(GL_BACK);
I suggest applying this property only to the element you'd like to improve the animation of.