Fix safari bug for css transform animations