tilt.js icon indicating copy to clipboard operation
tilt.js copied to clipboard

Feature Request: Tilt according to device rotation on mobile

Open candidia opened this issue 8 years ago • 10 comments

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.

candidia avatar Jul 26 '17 20:07 candidia

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 !

Smashr avatar Sep 12 '17 23:09 Smashr

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

enkota avatar Dec 09 '17 13:12 enkota

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 avatar Dec 28 '17 11:12 Smashr

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

Smashr avatar Dec 28 '17 11:12 Smashr

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

j-greig avatar Mar 23 '18 17:03 j-greig

Anyone had a chance to do this?

patrykmaron avatar Jun 04 '18 09:06 patrykmaron

👍

justrealmilk avatar Jun 23 '18 12:06 justrealmilk

This would be awesome!

TheArtOfPour avatar Nov 08 '18 17:11 TheArtOfPour

That would be great!

giovannipds avatar Aug 22 '19 18:08 giovannipds

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

giovannipds avatar Aug 22 '19 18:08 giovannipds