Fix animation in webkit