CSS Transitions
CSS transitions allows you to change property values smoothly, over a given duration.
CSS Transitions
CSS transitions allows you to change property values smoothly, over a given duration.
Transition Effect
To create a transition effect, you must specify two things:
- The CSS property you want to add an effect to
- The duration of the effect
Hover over the div element below:
Specify the Speed Curve
The transition-timing-function property specifies the speed curve of the transition effect.
ease- specifies a transition effect with a slow start, then fast, then ends slowly (this is default)linear- specifies a transition effect with the same speed from start to endease-in- specifies a transition effect with a slow startease-out- specifies a transition effect with a slow endease-in-out- specifies a transition effect with a slow start and end