Tag Archives: Vibration API

The Vibration API (vibration) in HTML5

via The Vibration API (vibration) in HTML5 – Blog – [Free Development].

Devices such as tablets and phone s have today a major web presence; estimated data traffic generated by these devices exceeds the data traffic generated by the PC in a few years; for this reason, it is important for us developers to exploit in the best way possible every tool that gives us the Web; among them is the API Vibration of HTML5. In this article we will see how to add the characteristics of vibrating devices to our applications.

The method vibrate the object navigator to activate the vibration hardware of a device using JavaScript ; of course, this will happen if such hardware is present in said device; if the device does not support vibration , the method will have no effect on the device.