workaround for a webkit animation bug