This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

A DeviceRotationRate object provides information about the rate at which the device is rotating around all three axes.

Properties

DeviceRotationRate.alpha Read only
The amount of rotation around the Z axis, in degrees per second.
DeviceRotationRate.beta Read only
The amount of rotation around the X axis, in degrees per second.
DeviceRotationRate.gamma Read only
The amount of rotation around the Y axis, in degrees per second.

Specifications

Specification Status Comment
DeviceOrientation Event Specification Editor's Draft Initial specification.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
DeviceRotationRate
Experimental
Chrome ? Edge Full support YesFirefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
alpha
Experimental
Chrome ? Edge Full support 12Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
beta
Experimental
Chrome ? Edge Full support 12Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
gamma
Experimental
Chrome ? Edge Full support 12Firefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

Document Tags and Contributors

Last updated by: mdnwebdocs-bot,