Add transition for CSS3 browsers and firefox 4