DeviceMotionEventAcceleration
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The DeviceMotionEventAcceleration object provides information about the amount of acceleration the device is experiencing along all three axes.
Instance properties
DeviceMotionEventAcceleration.xRead only-
The amount of acceleration along the X axis.
DeviceMotionEventAcceleration.yRead only-
The amount of acceleration along the Y axis.
DeviceMotionEventAcceleration.zRead only-
The amount of acceleration along the Z axis.
Specifications
| Specification |
|---|
| DeviceOrientation Event Specification # devicemotioneventacceleration |
Browser compatibility
BCD tables only load in the browser