Faragiri
English

Choose a language 2

Learn Easing and timing Motion

A Barcelona page turner whose ease-in-out spent its first third accelerating, so cellists pressed the pedal twice and skipped a page.

6Sections
4Min read
4Depth

Recommended Before This

0 / 2

A cubic bezier is four numbers and two of them decide the feel. The first pair says how fast the movement starts and the second says how it lands, and almost every animation anybody has ever described as feeling wrong is one of those two.

Marta is building a sheet music page turner for an orchestra in Barcelona. A cellist presses a foot pedal and the next page arrives, in the middle of a bar, with a bow in the air.

The three curves worth having

Ease-out is 0, 0, 0.2, 1 and ease-in is 0.4, 0, 1, 1. The first starts at full speed and decelerates into place; the second starts slowly and leaves at speed. Between them sits the third, and ease-in-out is 0.4, 0, 0.2, 1, which is for something that starts and ends in view.

Three curves by direction

Choose the curve by whether the element enters, moves inside, or leaves

Arriving elements start fast and settle softly, leaving elements accelerate away, and elements staying in view smooth both ends.

curve assignment by element trajectory

Arriving on screenLeaving screen
  1. Ease-out (0, 0, 0.2, 1)arriving elements; used on the 240 ms page turn
  2. Ease-in-out (0.4, 0, 0.2, 1)elements that begin and finish inside the viewport
  3. Ease-in (0.4, 0, 1, 1)elements departing so they look like they are going somewhere

An arriving element should look as though it was already moving; a leaving element should look as though it has somewhere to go.

Modular Type Scale & CSS Flex/Grid Motion Lab

Test harmonic typography ratios and live Flexbox/Grid layouts with 1-click CSS export.

The rule that assigns them is short: ease-out for anything arriving, ease-in for anything leaving. An arriving element should look as though it was already moving before you noticed it, and a leaving one should look as though it is going somewhere rather than fading out in place.

The page turn is 240 ms on 0, 0, 0.2, 1, which puts the new page most of the way across before the player has registered that anything is happening.

What the curve is actually doing

At a quarter of the duration an ease-out has covered about 60 of the distance. That is the whole of why it feels different, and it is a number rather than an impression.

One page turn, 240 ms

How far an ease-out has travelled at each quarter of its duration

The curve's whole character is in the first quarter, which is also the only part a person waiting for something actually experiences.

distance covered, out of 100, at each quarter of the duration

  1. 60a quarter
  2. 85a half
  3. 96three quarters
  4. 100the end

Linear covers 25, 50, 75 and 100 across the same four columns, and an ease-in-out covers about 15 at the first. On this app the difference between 60 and 15 is whether a cellist presses the pedal twice.

Across the four quarters the same curve reads 60, 85, 96 and 100. Linear has covered 25, which is why it reads as mechanical: nothing in the physical world moves at a constant speed from a standing start, so a constant speed is the one profile that announces a computer.

Ease-in-out covers about 15 at the first quarter, because it is still accelerating, which is exactly wrong for something a musician is waiting for.

Springs, and where they belong

A spring has stiffness and damping and no duration. It is defined by physics rather than by time, so it settles when it settles, and that is a feature for anything whose starting velocity is not known.

Physics over fixed duration

Use springs for user-driven velocity, and keep overshoot off text

Springs respond to how fast a finger releases a panel, whereas fixed durations ignore release speed and feel detached.

Is the user dragging the element or reading text on it?
  • Dragged panels and small buttons
    Use a springstiffness and damping settle naturally from release speed
    • Slow drags and quick flicks produce distinct motion
    • Tiny overshoot on a button reads as physical
  • Sheet music or readable text
    Prevent overshootwobbling lines interrupt reading mid-phrase
    • Staff lines must land cleanly without bouncing
    • Use ease-out or critically damped settle instead

A spring has stiffness and damping rather than a clock duration, settling when its energy dissipates.

Use a spring for anything the person is dragging. A panel being pulled with a finger has a velocity at the moment of release, and a fixed duration curve has to ignore it: a slow drag and a flick produce the same animation, which is the one place a bezier always feels wrong.

Overshoot is fine on a small element and never on text. A button that overshoots by a pixel or two reads as physical. A page of staff lines that overshoots wobbles, and a musician reading it mid-phrase sees the notes move.

What to open

The easing editor in the browser's style panel draws the curve and lets it be dragged, free and already installed, and it replaces guessing four numbers and reloading. Watching the curve and the animation change together is how the relationship between the second control point and the landing becomes obvious rather than memorised.

What to open

Built-in DevTools and CSS linear() replace guesswork and script libraries

Modern browsers already draw bezier handles interactively and support multi-point springs natively in CSS.

Guesswork and scriptsslow tuning with added bundle cost
Native browser toolsfree, visual, and in CSS since 2024
Bezier tuningEdit four numbers in code and reload repeatedlyDrag handles in the style panel easing editor live
Spring curvesImport a JavaScript animation library for one bounceApproximate springs with an arbitrary point list in CSS linear()
Render impactExtra script work alongside sheet music renderingNative CSS evaluation with zero dependency weight

Watching the curve move alongside the live element teaches how the second control point shapes the landing.

CSS linear() takes an arbitrary list of points, part of the language and in every current browser since 2024, so a spring can be approximated without loading anything. It replaced a JavaScript animation library pulled in to get one bounce, which is a common trade and a poor one on a device that has to render sheet music.

Where it stalls: the default

Every animation ships with the browser's default ease, which is a curve nobody chose and which is wrong for leaving. Writing transition with a duration and no timing function gets it, and it is a gentle ease-in-out that is acceptable everywhere and correct nowhere.

Where it stalls

The browser default ease survives because it never breaks loudly

Omitting a timing function gives every transition the same slightly soft ease-in-out, creating a loop nobody files as a bug.

Default ease persists

  • 01Duration written alone
  • 02Soft, uniform feel
  • 03No bug report filed
  1. 01Duration written alonedeveloper sets timing without naming a curve
  2. 02Soft, uniform feelacceptable everywhere and right for neither arrivals nor exits
  3. 03No bug report filedteams ship for years without questioning the default

Break the loop by defining the three named curves as CSS custom properties so every transition requires an explicit choice.

What makes it durable is that it is never obviously bad. The default produces animations that feel slightly soft, slightly late, slightly the same as each other, and none of those is a bug report. A team can ship for years without anybody typing a timing function, and the product will feel like a product where nobody typed one.

The fix is two lines in a stylesheet: name the three curves as custom properties and use them. After that the default is unavailable, and choosing one becomes a decision somebody makes rather than one nobody made.

What it looks like when it goes wrong

The first version turned the page with an ease-in-out over 300 ms. Eighty milliseconds after the pedal, the page had moved about a tenth of the way, which is not visible at arm's length on a music stand. Players pressed the pedal again, and the second press queued a second turn, so a fifth of the time the app skipped a page in the middle of a movement. The duration was inside the band, the curve was a standard one, and the only thing wrong was that it spent its first third accelerating while somebody was waiting to read.

When ease-in-out fails

A slow start on a 300 ms page turn caused double pedal presses

Even inside an acceptable duration band, spending the first third accelerating makes a responsive instrument look frozen.

Switching to an ease-out curve puts most of the movement into the opening moments so the player never doubts the tap.

Where a movement is carrying a person between two states rather than confirming an action is showing where a thing came from. The small confirmations that use the shortest end of the band are feedback on the small actions. And any of this has to have an answer for somebody who has asked their machine for less movement, which is a success criterion described in the levels, and what AA actually requires. What motion is for at all is one level up, in movement that explains rather than decorates.

Alongside this

Above this