All specs
W3C VibrationW3CNicheProduct

Vibration API

Device Access & Sensors·World Wide Web Consortium
WHY YOU NEED THIS

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)

vibrationhapticfeedbackmobiledevice-accessbrowser
Standards Body
World Wide Web Consortium

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.

Visit

Related Specs

WHATWG NotificationsWHATWGShould Know

Notifications

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.

ProductDevice Access & Sensors
Details