Skip to main content

Transition

UI Design

What is a Transition

A transition is motion that moves an element smoothly from one state to another, such as a menu opening, a button changing color on hover or one screen replacing another. Instead of changing instantly, the change happens over a short time.

How a Transition works

  • Property: What changes, such as color, size or position
  • Duration: How long it takes
  • Easing: How the speed changes over time
  • Delay: When it starts

Types of UI Transitions

  • State transitions: Hover, press, open and close
  • Screen transitions: Moving between pages or views
  • Material patterns: Container transform, shared axis, fade through and fade

Transition best practices

Keep transitions short: about 100 ms for small feedback and 200 to 300 ms for larger changes. Use easing so motion feels natural. Respect the system setting to reduce motion.

Frequently asked questions

What is the difference between a transition and an animation?

A transition moves an element smoothly between two states, such as a button changing color on hover. An animation can run through many steps, defined with keyframes, and can loop or play on its own.

How long should a UI transition last?

NN/g suggests 100 to 500 ms for most UI animation: about 100 ms for small feedback such as a toggle, and 200 to 300 ms for larger changes such as a panel opening.

What are Material Design's transition patterns?

Material defines container transform, where an element expands into a new view, shared axis for moving between related screens, fade through for unrelated screens, and fade for elements that appear or disappear.