MDN self-hosted library · e01.org

DeviceMotionEventAcceleration

Device Orientation Events

no runnable cells web-api-interface upstream source

Device Orientation Events

The DeviceMotionEventAcceleration interface of the provides information about the amount of acceleration the device is experiencing along all three axes.

Instance properties

  • DeviceMotionEventAcceleration.x
  • : The amount of acceleration along the X axis.
  • DeviceMotionEventAcceleration.y
  • : The amount of acceleration along the Y axis.
  • DeviceMotionEventAcceleration.z
  • : The amount of acceleration along the Z axis.

Specifications

Browser compatibility