正在加载视频...

视频加载失败

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

139,375 次观看 • 1 年前 •via X (Twitter)

11 条评论

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

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

Louis DeScioli ᯅ 的头像
Louis DeScioli ᯅ1 年前

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 ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

Ha - That's amazing! 😂

Cyrus Zei 的头像
Cyrus Zei1 年前

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

Joel Stransky 的头像
Joel Stransky1 年前

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

Beni Sinca 的头像
Beni Sinca1 年前

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

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

Yep - It's in there 🤙

VirtualJester.x 的头像
VirtualJester.x1 年前

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

Sudhansu Bhushan Mishra 的头像
Sudhansu Bhushan Mishra1 年前

Does this use the Accelerometer API?

Tophe 的头像
Tophe1 年前

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

jhey ▲🐻🎈 的头像
jhey ▲🐻🎈1 年前

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

相关视频

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

Sensitive content

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

Bbi

29,706 次观看 • 1 年前