Shake / Wiggle

Use one brief horizontal shake for errors or inputs that need attention.

Preview

A rapid alternating displacement flags invalid input or a rejected action.

Preview
Shake / Wiggle

Implement Shake / Wiggle: Use one brief horizontal shake for errors or inputs that need attention. Use Duration 240ms, Distance 10px, Cycles 3. Trigger it once when state changes and keep it replayable. Use semantic HTML, scope CSS to .motion-demo--shake-wiggle. Provide equivalent low-motion behavior for prefers-reduced-motion and .force-reduced-motion.

Learn more