Add CSS transition support

Those functions bother me too :grinning: 

It's not a big deal though.