Hold to confirm

Show cancellable progress during hold-to-confirm interactions to reduce mistakes.

Preview

A timed progress indicator advances while continuous press input is maintained and completes at a threshold.

Preview

Implement Hold to confirm: Show cancellable progress during hold-to-confirm interactions to reduce mistakes. Use Confirmation duration 1200ms, Hold scale 98%, Easing linear. Trigger it from real pointer, touch, or keyboard interaction. Use semantic HTML, scope CSS to .motion-demo--hold-to-confirm, and mount the provided vanilla JavaScript interaction runtime. Provide equivalent low-motion behavior for prefers-reduced-motion and .force-reduced-motion.

Learn more