Micro-interactions

Segmented

A segmented control whose indicator travels on a shared layout id and smears in the direction it is moving.

Install

Props

What It Demonstrates

Direction-aware transition
Content slides one way going forward and the opposite way going back, so navigation has a sense of direction.
Layout animation
When an element's size or position changes, it animates to the new spot instead of snapping.
Squash & stretch
Deforming an element as it moves to convey weight, speed, and flexibility.
Velocity
How fast and in which direction an element is moving. A spring carries it into the next animation when interrupted, so a flicked element keeps its speed.
Spring
Motion driven by physics (tension, mass, damping) rather than a set duration.

Related Components

Appears In