Transitions
Last updated
Last updated
Transforms are a bit rough. They need some smoothness. Let's animate them!
https://codepen.io/younes-jaaidi/pen/qMxpxY
The transition
property takes 4 parameters:
The property we want to animate.
Transition duration.
Timing function (ease, linear, ease-in, ease-out, ease-in-out, cubic-bezier).
Delay to apply before starting the transition.
It is possible to apply transitions on multiple properties with different parameters.
https://codepen.io/younes-jaaidi/pen/aaqEKq
For better user experience, use short transitions (less than 500ms).