Add CSS3 transitions support

Let users choose the transitionIn and transitionOut