files/en-us/web/api/devicemotionevent/rotationrate/index.md
{{APIRef("Device Orientation Events")}}{{securecontext_header}}
The rotationRate read-only property of the {{domxref("DeviceMotionEvent")}} interface returns the rate at which the device is rotating around each of its axes in degrees per
second.
[!NOTE] If the hardware isn't capable of providing this information, this property returns
null.
The rotationRate property is a read only object describing the rotation
rates of the device around each of its axes:
alpha
beta
gamma
{{Specifications}}
{{Compat}}