Vibration API
Enables haptic feedback for notifications, game events, form validation errors, and timer alerts on mobile devices. Simple API but important for mobile-first UX and accessibility.
What It Defines
Defines navigator.vibrate() for triggering device vibration. Accepts a duration in milliseconds or a pattern array (alternating vibrate/pause durations). Calling with 0 or an empty array cancels vibration. Only works on devices with a vibration motor.
Canonical (Normative)
Convenient (Practical)
Publishes web platform specs including CSS, accessibility, security policies, Service Workers, Web App Manifest, and many browser APIs. Also maintains some versioned HTML/DOM specs.
Related Specs
The display side of web notifications (Push API handles delivery). Used for chat messages, calendar reminders, and real-time alerts. Understanding the permission model and notification lifecycle prevents spam UX.