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

Feature Request: Tilt according to device rotation on mobile #28

Open
bitofbreeze opened this issue Jul 26, 2017 · 10 comments
Open

Feature Request: Tilt according to device rotation on mobile #28

bitofbreeze opened this issue Jul 26, 2017 · 10 comments
Assignees

Comments

@bitofbreeze
Copy link

bitofbreeze commented Jul 26, 2017

I would love to see this option implemented to make this more mobile-responsive. Right now, tapping on an object using tilt.js sometimes slightly changes the orientation and looks pretty bad and inconsistent on mobile, whereas allowing the device's orientation to control tilt would show the effect much better on mobile.

@Smashr
Copy link

Smashr commented Sep 12, 2017

I believe making the elements tilt on mobile devices besed on orientation/gyrospcope/accelerometer values would make this effect/library complete.

This addition would make the plugin much more usable, given that globally more than 50% of a website's traffic is from mobile devices with touch and without a 'pointer' based mouse.

Infact, parallax.js does this, and the animation effect is triggered by pointer events on desktops, and by orientation/tilt events on mobile devices. The only major difference is the type of transformation ... being "translate" for parallax.js and a "3D rotate" for tilt.js.

Try it out here:
http://matthew.wagerfield.com/parallax/

This addition, combined with the option to 'reverse' the interaction would make an already good effect great !

@enkota
Copy link

enkota commented Dec 9, 2017

Using this in a project and was thinking the same thing! Making use of the phone's gyro would be perfect 👍

@Smashr
Copy link

Smashr commented Dec 28, 2017

Yes, given that statistically 54.32 % of all users accessing a website are from a mobile device ( tablet / phone ) without a mouse or other pointing device, it makes sense that those devices are also supported.

http://gs.statcounter.com/platform-market-share/desktop-mobile-tablet

Cheers !

@Smashr
Copy link

Smashr commented Dec 28, 2017

Also, adding native gyro support will mean that this plugin can then be used for all sorts of webapps.

@j-greig
Copy link

j-greig commented Mar 23, 2018

Love this idea, was the first think I checked on my phone after installing!

@patrykmaron
Copy link

Anyone had a chance to do this?

@justrealmilk
Copy link

👍

@TheArtOfPour
Copy link

This would be awesome!

@giovannipds
Copy link

That would be great!

@giovannipds
Copy link

https://github.com/JB1905/universal-tilt.js

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

No branches or pull requests

9 participants