DeviceOrientationEvent.alpha

  • Revision slug: Web/API/DeviceOrientationEvent.alpha
  • Revision title: DeviceOrientationEvent.alpha
  • Revision id: 413391
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

{{ DomRef() }}

Summary

Returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen. See Orientation and motion data explained for details.

Syntax

var alpha = instanceOfDeviceOrientationEvent.alpha;

Specifications

Specification Status Comment
{{SpecName('Device Orientation')}} {{Spec2('Device Orientation')}} Initial specification.

Browser Compatibility

{{ page("/en-US/docs/Web/API/DeviceOrientationEvent","Browser_Compatibility") }}

See also

Revision Source

<p>{{ DomRef() }}</p>
<h2 id="Summary" name="Summary">Summary</h2>
<p>Returns the rotation of the device around the Z axis; that is, the number of degrees by which the device is being twisted around the center of the screen. See <a href="/en/DOM/Orientation_and_motion_data_explained" title="Orientation and motion data explained">Orientation and motion data explained</a> for details.</p>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre class="eval">
<em>var alpha</em> = <em>instanceOfDeviceOrientationEvent</em>.alpha;
</pre>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{SpecName('Device Orientation')}}</td>
      <td>{{Spec2('Device Orientation')}}</td>
      <td>Initial specification.</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_Compatibility">Browser Compatibility</h2>
<p>{{ page("/en-US/docs/Web/API/DeviceOrientationEvent","Browser_Compatibility") }}</p>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{ domxref("DeviceOrientationEvent") }}</li>
  <li><a href="/en/Detecting_device_orientation" title="Detecting device orientation">Detecting device orientation</a></li>
  <li><a href="/en/DOM/Orientation_and_motion_data_explained" title="Orientation and motion data explained">Orientation and motion data explained</a></li>
  <li>{{ domxref("window.ondeviceorientation") }}</li>
  <li>{{ event("deviceorientation") }}</li>
</ul>
Revert to this revision