Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 14, 2021 07:17 am GMT

How to vibrate with javascript

Alt Text

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()}


Original Link: https://dev.to/raghav9official/how-to-vibrate-with-javascript-2a1m

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To