Animating non-animatable properties with CSS3 transitions
In my app I'm animating the opacity of elements on the page with something like: .s { transition-property: opacity; transition-duration: 250ms; } (with vendor-specific versions, of course). And then .s.hidden { opacity: 0; } So the animation starts when the hidden class is assigned. Problem is, mouse events are still detected on elements with opacity zero, which I don't want, so I need to either set visibility to hidden or display to none after the transition is finished. I would hope to be able to do something like: .s { transition-property: opacity, visibility; transition-duration: 250ms;