new solution for animations.
added support for cross-browser javascript transition events.