Added support for custom css animations.