Transition is one of the features with special functions in CSS3. You can add transition effects to elements when they change from one style to another without using flash animation or JS timer.
Browser support
Internet Explorer 10, Firefox, Opera and Chrome support the transition attribute.
Safari supports the alternative -webkit-transition property.
note:
Internet Explorer 9 and earlier browsers do not support the transition attribute.
Specify the name of the CSS property, such as width, height, if you want all properties to be changed, just write an all
transition-duration
The transition effect needs to specify how many seconds or milliseconds to complete
transition-timing-function
Specify the speed curve of the transition effect. The default is ease (gradually slower) and other parameters linear (uniform speed), ease-in (acceleration), ease-out (deceleration), ease-in-out (accelerate first, then decelerate)
transition-delay
When defining the transition effect, the unit is seconds (s).