Accelerometer Demo with JavaScript, CSS and HTML




The balloon moves according to the accelerometer in all left/right and front/back directions.

See it working at:
http://felipenmoura.com/accelerated-balloon/

There is this article (in pt-BR) about it, at:
https://braziljs.org/blog/brincando-com-o-acelerometro/

Github:
https://github.com/felipenmoura/accelerated-balloon

Original source


One response to “Accelerometer Demo with JavaScript, CSS and HTML”

  1. Ok some questions…Do all Macbooks later than 2013 contain accelerometers and all the other necessary parts to do this without attaching any extra parts? Plus, is there a way to display the actual accelerometer data readings on the screen?

Leave a Reply