Handling CSS Transitions with prepareTransition - Snook.ca
Using CSS transitions can be quite fun. But what’s not fun is when you want to transition something that needs to use display:none or visibility:hidden (or really, any non-transitionable property).