Skip to content
MotionLab

Modal & Drawer

Animated modal plus a bottom sheet you can drag down to dismiss.

sketchMotion

How it works

The drawer uses drag="y" with dragConstraints top:0 and closes when offset or velocity crosses a threshold.

Performance

Only transform and opacity are animated, so every frame is composite-only: no layout, no paint.

Accessibility & reduced motion

Both are role="dialog" aria-modal with Esc-to-close and focus return.

Playgroundspring
settle 0.48sovershoot 5%ζ 0.92
Export
transition={{ type: 'spring', stiffness: 380, damping: 36, mass: 1 }}