Clean code for CSS animations