refactoring animations.css