This content originally appeared on DEV Community and was authored by Raghav Yadav
How to vibrate the JavaScript?
Though vibration can provide haptic feedback and a confirmation kinda thing which tells the user that an action has been performed.
That's easy use:
navigator.vibrate(200);
Or use hash.js and use:
hash().vibrate(200) //where 200 is the strength
Anddd if(article="nice"){hash(".btn").click()}
This content originally appeared on DEV Community and was authored by Raghav Yadav
Raghav Yadav | Sciencx (2021-05-14T07:17:10+00:00) How to vibrate with javascript. Retrieved from https://www.scien.cx/2021/05/14/how-to-vibrate-with-javascript/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.