fix animation css attribute