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:

There is this article (in pt-BR) about it, at:


Original source

One thought on “Accelerometer Demo with JavaScript, CSS and HTML

  • September 27, 2019 at 17:11

    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