YorkshireKev / tilt

Device orientation experiment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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

About

Device orientation experiment

License:MIT License


Languages

Language:JavaScript 38.9%Language:HTML 32.3%Language:CSS 28.8%