🎞️Ease-In-Out
Also known as Ease In Out, Ease-In-Out Curve, S-Curve Easing
Easing that is slow at both ends and fast in the middle. It suits moves within the screen.
Think of it like
It is like a lift between floors. It starts gently, goes fast, then stops gently.
Example
A photo moves from a grid to full screen. It eases out of its spot, speeds up, and eases into place.
Why it matters
For a thing that starts and ends on screen, it is the move that looks most like the real world.
Definition
Example code
css
.photo {
transition: transform 400ms ease-in-out;
/* same as cubic-bezier(0.42, 0, 0.58, 1) */
}Common mistake
Key takeaways
- 1Slow, fast, slow. An S-shaped curve.
- 2For moves on screen. From one spot to another.
- 3Not for every case. Entrances want ease-out.