1.4.0 • Published 4 years ago
haptica v1.4.0
haptica
An open source library to make it easier to use vibration in HTML5/Javascript
How to use?
It's very simple you just need to link the lib
<script type="text/javascript" src="haptica.js"></script>
<!--- Or you can use -->
<script type="text/javascript" src="haptica.min.js"></script>
Download via npm
npm i haptica
When you done to use in you js code
haptica('type of vibration');
You can download the exemple file or go to this link for test the vibration on your smartphone (It will may not work on some browser)