UI.MD

Animation & motion

Fast and purposeful. Every transition stays under 300ms, spring physics handle interactive elements, and every animation respects reduced motion preferences.

Press feedback

Every button scales down on press for tactile feedback via a fast CSS transform transition.

Spring indicators

Interactive indicators use spring physics for natural momentum. Click between tabs to feel the spring settle.

Easing direction

Match the easing curve to the motion: entering decelerates, exiting accelerates.

ease-outEntering: Decelerates into place
ease-inLeaving: Accelerates off-screen
ease-in-outMovement: Travels across the screen
linearConstant: Progress bars, spinners

Duration scale

Four tiers, capped at 300ms. Anything longer feels sluggish.

TierUsageDuration
MicroSmall hovers, color shifts100ms
StandardTooltip, button hover, input focus150ms
ContentTab swap, accordion200ms
MaximumModal, mobile menu300ms

Component motion audit

The kit's animated components and the motion config behind each.

ComponentInteractionType
ButtonPress feedback: active:scale-[0.98]CSS
TabsPill slide: bounce: 0.1Spring
ShimmerShimmer loop: linear, repeatFramer
TooltipEnter/exit: fade + scale 150msBase UI
PopoverEnter/exit: fade + scale 200/150msBase UI
DropdownEnter/exit: fade + scale 200/150msBase UI
DialogEnter/exit: fade + scale 200/150msBase UI
Alert DialogEnter/exit: fade + scale 200/150msBase UI
SwitchThumb slide: transitionCSS
CollapsibleExpand/collapse: height 200/150msHeight
CardContent grow: animateHeight 200msHeight

Next steps