Fix CSS transitions

This should fix #37.

You don't even want to know what I had to do to track this down. It's simple enough when you know what the problem is, but it was a needle in a haystack before. The good news is regressions like this should be a lot easier to spot with consistent code style in place.