OS Integration

Vibration

Probing…

Vibration is a web platform capability in the OS Integration category. Trigger haptic vibration patterns (mobile). Supported in Chromium 32+ and Firefox 16+; not available in Safari. Requires a user gesture such as a click or tap.

User gesture

Try it

Loading demo…

Code

navigator.vibrate(200)                    // single buzz
navigator.vibrate([100, 50, 100, 50, 300]) // pattern
navigator.vibrate(0)                       // stop

Browser support

Chromium
32
Firefox
16
Safari
No

Frequently asked questions

Which browsers support Vibration?

Supported in Chromium 32+ and Firefox 16+; not available in Safari.

Does Vibration require HTTPS?

No. Vibration works without a secure context, though serving your site over HTTPS is always recommended.

What is Vibration used for?

Trigger haptic vibration patterns (mobile).

Can I try Vibration in my browser?

Yes. shwcs.net runs a live Vibration demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.

MDN reference ↗ Specification ↗