Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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

139,353 görüntüleme • 1 yıl önce •via X (Twitter)

11 Yorum

jhey ▲🐻🎈 profil fotoğrafı
jhey ▲🐻🎈1 yıl önce

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

Louis DeScioli ᯅ profil fotoğrafı
Louis DeScioli ᯅ1 yıl önce

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 ▲🐻🎈 profil fotoğrafı
jhey ▲🐻🎈1 yıl önce

Ha - That's amazing! 😂

Cyrus Zei profil fotoğrafı
Cyrus Zei1 yıl önce

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

Joel Stransky profil fotoğrafı
Joel Stransky1 yıl önce

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

Beni Sinca profil fotoğrafı
Beni Sinca1 yıl önce

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

jhey ▲🐻🎈 profil fotoğrafı
jhey ▲🐻🎈1 yıl önce

Yep - It's in there 🤙

VirtualJester.x profil fotoğrafı
VirtualJester.x1 yıl önce

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

Sudhansu Bhushan Mishra profil fotoğrafı
Sudhansu Bhushan Mishra1 yıl önce

Does this use the Accelerometer API?

Tophe profil fotoğrafı
Tophe1 yıl önce

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

jhey ▲🐻🎈 profil fotoğrafı
jhey ▲🐻🎈1 yıl önce

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

Benzer Videolar