Added support for transition, in older browsers