Rewrite code of CSS animation.