This is pretty awesome, and opens so many possibilities on mobile, well done !!!
But is there a way to avoid having to click the button to allow using device orientation ? It would make the UX so much better being able to bypass this…
@Pasint I agree, I really wish there was a way to bypass having to click the button to allow using device orientation… It seems that before ios 12.2 it was possible however from ios 12.2 up until 13 it required the user to have a setting enabled in safari preferences… from 13+ it now requires the request to come from a click event.
I’ll be looking into this more if I have some spare time and get bored, but I just wanted to show that it is at least possible
I found the bulk of the code to make it work on https://all-layers.webflow.io
That code directly didn’t work on iOS 13 so I did some digging, you can view my source code to see how I got it to work.