HTML and CSS Reference
Listing I.28. Vibrate when screen edges are reached
The Vibration API can also create a pattern if you pass it an array rather than a single num-
ber. The values are again times in milliseconds, but now they alternate between vibrating
and not vibrating. The following listing shows an example of this.
Listing I.29. Vibrating in a pattern