Adding callback support for animations.