Click on the element you want to add a vibration, then go to the settings tab on the top right-hand menu.
Within your element settings under "Custom Attributes", add a new attribute and set the name to "data-haptics" and value to "vibration name".
Once your done simply publish and preview on a mobile device!
If you wish to make any modifications to the script, you can find it in the home page "edit page settings" under the "Before <body> tag".
This library utilizes the HTML5 browser method "navigator.vibrate" which results in vibrotactile effects from the device's vibration motor. It is important to keep in mind that these vibrations can reduce noticeable battery power on your users device so please use responsibly. IMPORTANT does not work on all devices.
This library was created thanks to Shantanu Bala's haptics.js