Accelerometer
Limited availability
The Accelerometer
, LinearAccelerationSensor
and GravitySensor
APIs read the acceleration applied to a device in three dimensions, either including the effect of gravity, without its effect, or only its effect, respectively.
To learn more, see
Accelerometer at MDN.
Compatibility
- Chrome 91 Released on 2021-05-25
- Chrome Android 91 Released on 2021-05-25
- Edge 91 Released on 2021-05-27
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position
Specifications
- Accelerometer, from Devices and Sensors Working Group (W3C).