Fixed bug with dynamic CSS animation.