adding cross-browser support for transition animation in css