1.4.0 • Published 4 years ago

haptica v1.4.0

Weekly downloads
2
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

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)