Loading video...

Video Failed to Load

Go Home

Gravity with JavaScript && deviceorientation ʕ´•ᴥ•`ʔ

139,375 views • 1 year ago •via X (Twitter)

11 Comments

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

Here's the @CodePen for this one 🤙 If you want to drag things around on mobile/touch, double-tap the screen ✨

Louis DeScioli ᯅ's profile picture
Louis DeScioli ᯅ1 year ago

Got a little bit of fun on my personal site using this! Fun fact, that same API works on visionOS/Vision Pro with the gravity sensor in your headset! Pull up your site and do a handstand and see what happens 😜

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

Ha - That's amazing! 😂

Cyrus Zei's profile picture
Cyrus Zei1 year ago

You better delete this post or else we will see all PM wants to implement this 😂

Joel Stransky's profile picture
Joel Stransky1 year ago

You would have had so much fun during the Flash days.

Beni Sinca's profile picture
Beni Sinca1 year ago

It's fun but on iOS you need the request permission 😔

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

Yep - It's in there 🤙

VirtualJester.x's profile picture
VirtualJester.x1 year ago

Really like the gradient/fade/dark for items not quite in focus. Makes it look really 3D and super polished

Sudhansu Bhushan Mishra's profile picture
Sudhansu Bhushan Mishra1 year ago

Does this use the Accelerometer API?

Tophe's profile picture
Tophe1 year ago

If you like #deviceorientation demos, check this one I made with #bevy #rust #wasm 🦀

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

The 1st conference talk I ever gave included a demo of cracking a safe using deviceorientation 😁

Related Videos

내가 아끼는 교복 디기리 제노 보실 분 ʕ.-᷅ᴥ-᷄ʔ
0:30

Sensitive content

내가 아끼는 교복 디기리 제노 보실 분 ʕ.-᷅ᴥ-᷄ʔ

Bbi

29,706 views • 1 year ago