Motion

Short, consistent motion that respects reduced motion.

Reach for it when
  • Anything that moves into place: use the Fern Default easing and duration tokens.
  • New motion needs a reduced-motion state in which every state still reads.

The short version

If you read nothing else on this page, read these.

Open siteCopy linkSettings
Do. Move to explain: the menu grows out of the button that opened it.
Open siteCopy linkSettings
Don't. Move to decorate. A bounce and a spin say nothing about what changed.

Easing

One curve, Fern Default, for anything moving into place, and three others for their one job each.

Easing race

Each curve at the duration it ships with. Run it again and watch the finish.

Fern Default450ms
Ease out200ms
Overshoot300ms
Linear450ms

Curve

Time runs left to right, progress bottom to top. The ball below moves with the same easing.

0ms450ms10
Curvecubic-bezier(0.4, 0, 0.2, 1)--icon-motion-ease · --icon-motion-duration
Duration450ms
Used for

Icon hovers and the sidebar indicator. Eases in and out, so nothing snaps.

In the product

The motion that already ships. Reach for these before adding a keyframe.

Segmented control

The pill slides, 200ms ease-out. Click a segment.

Sidebar indicator

One marker, 250ms on the Fern Default easing. Click an item.

Icon hovers

450ms on the Fern Default easing, each icon its own gesture. Hover a tile.

Agent mark

Ripples through its shapes while the agent works, then settles.

Reduced motion

Under prefers-reduced-motion, every state still reads. Keep the end state, drop the travel.

Opening a menu

Full motion scales the menu out of its trigger. Reduced motion keeps the fade and drops the travel.

Full motion
Open siteCopy linkSettings
Reduced motion
Open siteCopy linkSettings

Rules

Every rule on one list. Open one for the reasoning behind it.

4 rules
  1. 01One easing, three durations--icon-motion-ease for anything moving into place; 200ms for a pill or indicator, 300ms for a surface scaling in, 450ms for icon hovers.
  2. 02Motion explains a changeSomething slides because it moved, fades because it appeared, scales because it opened. Nothing moves to decorate.
  3. 03Reduced motion is a state, not a switch-offUnder prefers-reduced-motion, keep the end state and drop the travel: the fade without the slide, the pill in place.
  4. 04Reuse the existing motionIcon hovers, the segmented pill, the sidebar indicator and AgentMark already move. Reach for them first; a new keyframe is fine with a reduced-motion state, and review flags a designer.

Keep going

Accessibility
Fern supports accessibility standards out of the box.
Agent mark
The Fern Agent's mark, calm at rest and moving while it works.