Skip to content
Device orientation experiment
Branch: gh-pages
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
js
.gitignore
LICENSE.md
README.md
index.html

README.md

#Tilt - Device orientation demo#

Since finding out that many laptops contain an accelerometer, including my ASUS Chromebook, I thought it would be fun to hack some code together to test it out. This is a browser based demo that attempts to keep an iFrame level as the device is tilted left or right.

Only html5 web standards are used, so no need for flash or any such nonsense. It does require a fairly modern browser though. I've tested with Chrome and Firefox, but as I only have a Chromebook that sports an accelerometer I don't know if the tilting works in Firefox.

You don't need to clone the repo locally if you only want to run the demo. Just point your browser at: http://www.kevssite.com/tilt

You can’t perform that action at this time.