Accelerometer Demo with JavaScript, CSS and HTML

preview_player
Показать описание
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:

Github:
Рекомендации по теме
Комментарии
Автор

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?

bradleystone