> For the complete documentation index, see [llms.txt](https://pmsgz.gitbook.io/nectar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pmsgz.gitbook.io/nectar/advanced/web-apis/vibration.md).

# Vibration API

## Overview

Vibration API allows web apps to access the vibration mechanism of the device.

It can be used to provide physical feedback to the user by causing the device to shake.

## Demo

<https://nectar.website/demo/web-apis/vibration/>

## Usage

You can refer to the code present in `/partials/web-apis/vibration.html` file and use it accordingly.

## Reference

<https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API>
