It used to be possible with a script, and it’s somehow still possible (Mouse movement IX to Accelerometer movement on iOS). However, since iOS12.1, the user is require to give the website access to accelerometer. Which is… less than ideal, if not a total deal breaker.