Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide scroll as alternative to gyro #64

Open
andreasvirkus opened this issue Dec 7, 2019 · 1 comment
Open

Provide scroll as alternative to gyro #64

andreasvirkus opened this issue Dec 7, 2019 · 1 comment

Comments

@andreasvirkus
Copy link
Contributor

andreasvirkus commented Dec 7, 2019

Because browser vendors now expose the device's orientation only when the user has granted permission (and I'm not sure but I think - like with other APIs - you can only ask permissions based on a user-initiated action, like a click listener?) then could we maybe have the option to tilt based on a scroll position?

I'd imagine this to be useful for marketing/landing pages, where you'd want a tilt effect on mobile devices, but can't presume a user to click anything before (so we'd have access to the rotation events) 🤔

Related: w3c/deviceorientation#57

@micku7zu
Copy link
Owner

I've just refresh this on my Android in Chrome and it worked ok. I didn't have time to document on the subject lately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants