Fix CSS animations