跳过导航
Gravity with JavaScript && deviceorientation ʕ´•ᴥ•`ʔ
0:00 / 0:32

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

jhey ʕ•ᴥ•ʔ

@jh3yy15万 位关注者

在 X 上查看
1,813 个赞下载原帖

143,262 次观看

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

11 条评论

评论来自 X (Twitter) 上的原帖

  • jhey ▲🐻🎈 的头像

    @jh3yy

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

    30 个赞

  • Louis DeScioli ᯅ 的头像

    @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 个赞

  • jhey ▲🐻🎈 的头像

    @jh3yy

    Ha - That's amazing! 😂

    1 个赞

  • Cyrus Zei 的头像

    @cyrus_zei

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

    3 个赞

  • Joel Stransky 的头像

    @JoelStransky

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

    2 个赞

  • Beni Sinca 的头像

    @BenjaminSinca

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

    1 个赞

  • jhey ▲🐻🎈 的头像

    @jh3yy

    Yep - It's in there 🤙

    4 个赞

  • VirtualJester.x 的头像

    @VirtualJester_

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

    1 个赞

  • Sudhansu Bhushan Mishra 的头像

    @SudhansuBMishra

    Does this use the Accelerometer API?

    1 个赞

  • Tophe 的头像

    @topheman

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

    1 个赞

  • jhey ▲🐻🎈 的头像

    @jh3yy

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