devongovett devongovett - 1 year ago 102
CSS Question

Prevent flicker on webkit-transition of webkit-transform

Possible Duplicate:

iphone webkit css animations cause flicker

For some reason, right before my animation of the webkit-transform property occurs, there is a slight flicker. Here is what I am doing:


#element {
-webkit-transition: -webkit-transform 500ms;


$("#element").css("-webkit-transform", "translateX(" + value + "px)");

Right before the transition takes place, there is a flicker. Any idea why this is, and how I could fix the problem?


Update: this only occurs in Safari. It does not happen in Chrome, although the animation does work.

Answer Source

The solution is mentioned here:

For your element, you need to set

-webkit-backface-visibility: hidden;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download