Gravity with JavaScript && deviceorientation ʕ´•ᴥ•`ʔ
@jh3yy148 тыс. подписчиков
143 262 просмотра
11 комментариев
Комментарии из оригинального поста в X (Twitter)

@jh3yy
Here's the @CodePen for this one 🤙 If you want to drag things around on mobile/touch, double-tap the screen ✨
30 отметок «Нравится»

@descioli
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 😜
9 отметок «Нравится»

@jh3yy
Ha - That's amazing! 😂
1 отметка «Нравится»

@cyrus_zei
You better delete this post or else we will see all PM wants to implement this 😂
3 отметки «Нравится»

@JoelStransky
You would have had so much fun during the Flash days.
2 отметки «Нравится»

@BenjaminSinca
It's fun but on iOS you need the request permission 😔
1 отметка «Нравится»

@jh3yy
Yep - It's in there 🤙
4 отметки «Нравится»

@VirtualJester_
Really like the gradient/fade/dark for items not quite in focus. Makes it look really 3D and super polished
1 отметка «Нравится»

@SudhansuBMishra
Does this use the Accelerometer API?
1 отметка «Нравится»

@topheman
If you like #deviceorientation demos, check this one I made with #bevy #rust #wasm 🦀
1 отметка «Нравится»

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