DeviceMotionEventAcceleration
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
A DeviceMotionEventAcceleration object provides information about the amount of acceleration the device is experiencing along all three axes.
Properties
DeviceMotionEventAcceleration.xRead only-
The amount of acceleration along the X axis. Read only.
DeviceMotionEventAcceleration.yRead only-
The amount of acceleration along the Y axis. Read only.
DeviceMotionEventAcceleration.zRead only-
The amount of acceleration along the Z axis. Read only.
Specifications
| Specification |
|---|
| DeviceOrientation Event Specification # devicemotioneventacceleration |
Browser compatibility
BCD tables only load in the browser