DeviceMotionEvent
Baseline 2023 *Newly available
Since September 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
* Some parts of this feature may have varying levels of support.
- secure contexts (HTTPS), in some or all supporting browsers.
The DeviceMotionEvent
interface of the Device Orientation Events provides web developers with information about the speed of changes for the device's position and orientation.
Warning: Currently, Firefox and Chrome do not handle the coordinates the same way. Take care about this while using them.