Back

Dropdown

An animated select. The closed pill expands into a soft panel, the options stagger in with a blur, and it's fully keyboard-accessible.

Notes

Technique
The trigger never moves. A decorative frame behind it springs its insets from the trigger’s box out to the panel’s edge while the list springs from height 0 to auto. Options rise 6px out of a 6px blur, 30ms apart.
Timing
Open spring 320 / 27 and close spring 380 / 34 (stiffness / damping), both at mass 0.9: a livelier open, and a calmer close so the frame doesn’t wobble under the trigger. Each option fades in over 250ms.
Interruption
Every value is a spring that retargets from where it is, so toggling mid-animation reverses from the current height instead of jumping. Hover and arrow keys move one shared highlight.
Reduced motion
The list appears at full height and crossfades over 240ms. The frame only changes color, and the chevron flips without rotating.
Accessibility
WAI-ARIA listbox. The trigger is named by its label and its value. Arrow keys, Home, End and typing move the highlight; Enter or Space selects; Escape closes back to the trigger; Tab closes and moves on. Selected carries a check, highlighted a fill and the focus ring.