A demo of the Vibration API, currently implemented in Firefox.
All the code is available in the Vibration repository on GitHub.