Improve the css animations.