web api interface
DeviceMotionEventAcceleration
Secure context
The DeviceMotionEventAcceleration interface of the Device Orientation Events provides information about the amount of acceleration the device is experiencing along all three axes.
Instance properties
xRead only- : The amount of acceleration along the X axis.
yRead only- : The amount of acceleration along the Y axis.
zRead only- : The amount of acceleration along the Z axis.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.