Add CSS transition support

I'm always wary of functions that take boolean arguments. What do you think about breaking this into `setActiveState` and `setImmediateActiveState`?