Add CSS transition support

It can, but it makes tests really cumbersome to write. Ok, that's a bad excuse, I'll refactor...