Transition
UI DesignWhat 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.
Related terms
View all UI Design terms →Easing
Easing is the way an animation changes speed over time . Instead of moving at a constant rate, an eased element speeds up or slows down…
Keyframe
A keyframe is a point in an animation that defines a specific state , such as the start or end of a movement. The software fills in the…
Motion Design Principles
Motion design principles are guidelines for using animation in an interface so it helps users instead of distracting them. They cover why…
Micro-interactions
Micro-interactions are contained product moments that perform a single, specific task. They are the small, subtle animations and responses…
Spring Animation
A spring animation is motion driven by simulated spring physics instead of a fixed duration and curve. The element moves as if attached to…
Interactive States
Interactive states are the visual changes that show how a component responds to the user. They tell users whether an element can be used…
