Skip to content
English
Motion feels stiff34 / 71

Slide the way you are going

What it's calledDirectional transitionslide transitionGlossary

What goes wrong

When the next step and the previous one both just fade in place, people lose track of whether they went forward or back.

The fix

Bring forward steps in from the right and earlier steps back from the left, with the old one leaving the other way.

Tell your AI

On Next, slide the new step in from the right by var(--ds-distance-lg) (16px) and the old one out to the left by the same distance; on Back, mirror both. Enter over var(--ds-duration-base) (240ms) with var(--ds-ease-out), leave over var(--ds-duration-fast) (160ms) with var(--ds-ease-in), fading opacity with the movement.

  • --ds-distance-lg16px
  • --ds-duration-base240ms
  • --ds-ease-out
  • --ds-duration-fast160ms
  • --ds-ease-in
Why AI-generated UIs all look the same: 12 rules that fix it

Book your stay

Step 2 of 3

Pick a room

Garden room€96/ nightLoft with terrace€128/ night

Every step fades in place