How to vibrate with javascript

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().vi…


This content originally appeared on DEV Community and was authored by Raghav Yadav

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


This content originally appeared on DEV Community and was authored by Raghav Yadav


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » How to vibrate with javascript." Raghav Yadav | Sciencx - Friday May 14, 2021, https://www.scien.cx/2021/05/14/how-to-vibrate-with-javascript/
HARVARD
Raghav Yadav | Sciencx Friday May 14, 2021 » How to vibrate with javascript., viewed ,<https://www.scien.cx/2021/05/14/how-to-vibrate-with-javascript/>
VANCOUVER
Raghav Yadav | Sciencx - » How to vibrate with javascript. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/14/how-to-vibrate-with-javascript/
CHICAGO
" » How to vibrate with javascript." Raghav Yadav | Sciencx - Accessed . https://www.scien.cx/2021/05/14/how-to-vibrate-with-javascript/
IEEE
" » How to vibrate with javascript." Raghav Yadav | Sciencx [Online]. Available: https://www.scien.cx/2021/05/14/how-to-vibrate-with-javascript/. [Accessed: ]
rf:citation
» How to vibrate with javascript | Raghav Yadav | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.