Your page can sense how the device is accelerating. See: https://www.w3.org/TR/accelerometer/.
ACME Labs / Web APIs / Accelerometer Sensor