Adding support for CSS transitions