iOS + Accelerometer & Gyroscope in JavaScript

Device Orientation (accelerometer):

Device Motion (gyroscope):

This page demonstrates a basic use of the accelerometer in iOS via JavaScript.

Rotate your device to see the properties update. You must be using an iOS device with iOS 4.0 or greater.

Back to Blog