Device Motion
Device motion refers to a device's ability to detect its own physical movement, such as being tilted, shaken, or moved, using built-in sensors. Web pages and applications can access this data to respond to how a user physically handles their phone, tablet, or other device. In an accessibility context, features that rely solely on device motion can create barriers for people who cannot easily perform the required movements.
Device motion, as exposed through the W3C Device Orientation and Motion specification, is represented by the devicemotion event, which reports the acceleration of a device expressed in Cartesian coordinates within a defined coordinate frame. The event is fired at a regular interval and can indicate the device's acceleration rate with or without the contribution of gravity, drawing on accelerometer and gyroscope sensor data. Per the specification and browser implementations (for example, MDN's documentation of DeviceMotionEvent), user permission may be required to access this sensor data. From an accessibility standpoint, practitioners should note that WCAG addresses motion-based operation, later versions of WCAG introduced success criteria concerning motion actuation, so interactions triggered by device movement should generally provide alternative input methods; consult current WCAG guidance for the applicable criteria and levels.
Why it matters
Device motion enables engaging, intuitive interactions, shaking a phone to undo an action, tilting a device to steer in a game, or moving a device to trigger a feature. However, when a function can only be operated through device movement, it can exclude people who cannot easily tilt, shake, or otherwise physically manipulate their device. Users with motor disabilities, those who mount their devices in fixed positions, or people using assistive setups may be unable to perform the required gestures, effectively locking them out of the functionality.
This is why WCAG addresses motion-based operation. Later versions of WCAG introduced success criteria concerning motion actuation, generally directing that functionality triggered by device movement also be operable through conventional user interface components and that users be able to disable motion-based activation to prevent accidental triggering. Providing an alternative input method allows people who cannot use motion gestures to access the same features, while also helping users who might inadvertently activate motion-based controls.
Beyond accessibility considerations, access to device motion data may require user permission in modern browsers, and relying solely on motion can create barriers for anyone whose device or context does not support the expected movement. Practitioners should treat motion as an enhancement layered on top of accessible baseline controls rather than as the only way to operate a feature. This entry is not legal advice; consult current WCAG guidance for the applicable success criteria and conformance levels, and qualified counsel for compliance questions.
Who it's relevant to
Inside Device Motion
Common questions
Answers to the questions practitioners most commonly ask about Device Motion.