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.
https://nectar.website/demo/web-apis/vibration/arrow-up-right
You can refer to the code present in /partials/web-apis/vibration.html file and use it accordingly.
/partials/web-apis/vibration.html
https://developer.mozilla.org/en-US/docs/Web/API/Vibration_APIarrow-up-right
Last updated 3 years ago