CSS transition ease
.thing {
/* The default, as in, you get this without defining anything */
transition-timing-function: ease;
/* Also the same as */
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}
ease-in in css
ease = starts slow , speeds in middle and slow again in the end.
ease-in = slow in the beginning , speeds up in the end.
ease-out = speeds in the beginning, slow in the end.
linear = as the name suggest, i.e. constant speed throughout the animation.
ease-in-out = starts slow, fastest in the middle , slow again in the end.
DIFFERENCE BETWEEN EASE & EASE-IN-OUT
|