Navigation überspringen
hook this 3D CSS card up to device rotation? sure! 👨‍🍳
0:00 / 0:26

hook this 3D CSS card up to device rotation? sure! 👨‍🍳

jhey ʕ•ᴥ•ʔ

@jh3yy147.711 Follower

Auf X besuchen

82.223 Aufrufe

hook this 3D CSS card up to device rotation? sure! 👨‍🍳 tip: use the DevTools "Sensors" emulator with "Custom Orientation" to debug/refine before taking it to a real device 👇

24 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Dan Hollick

    @DanHollick

    Did not know about that sensor emulator, nice.

    5 Likes

  • Profilbild von jhey ʕ•ᴥ•ʔ

    @jh3yy

    it’s a fun one, if you have an android device spare, you can plug it in and mirror the debugging to desktop over USB 🤓

    1 Like

  • Profilbild von Sahaj

    @iamsahaj_xyz

    can we get a @jh3yy's guide to devtools video

    3 Likes

  • Profilbild von Junaid

    @MrJuna1d

    BRO I swear I did not even know we could do that in devtools

    2 Likes

  • Profilbild von amen

    @amensanyii

    For a device, wouldn't it be better to just move the illusion inside?

    2 Likes

  • Profilbild von jhey ʕ•ᴥ•ʔ

    @jh3yy

    yeah, you’re probably right, shall add a toggle for that 🙏

    2 Likes

  • Profilbild von savy

    @SatyamVyas04

    opens soooo many possibilities. how about a pokemon card replica?

    2 Likes

  • Profilbild von Ben Leonard

    @lenjaminbeonard

    I understand why they did it, but iOS requiring explicit user approval to access the device rotation API probably killed some fun web interactions

    1 Like

  • Profilbild von jhey ʕ•ᴥ•ʔ

    @jh3yy

    yeah, it’s a fun API but feels like device permissions in general are a tricky ground the geolocation one is also fun 😅

  • Profilbild von Asmit Malakannawar

    @asmitbm

    This is so cool! Definitely implementing a variant of this in my upcoming portfolio redesign 🤩

    1 Like

  • Profilbild von diip3sh

    @diip3sh

    Didn’t know chromium had sensor dev tool

    1 Like

  • Profilbild von jhey ʕ•ᴥ•ʔ

    @jh3yy

    @dip3sh_ jus' took a video so can show it hooked up to device via USB too with screen mirror, that's a fun trick 🤙

    1 Like

  • Profilbild von diip3sh

    @diip3sh

    Hmm, what if using dev server IP like in nextjs and check if sensor works, might be 🤨

  • Profilbild von jhey ʕ•ᴥ•ʔ

    @jh3yy

    @dip3sh_ as long as it's https, you're all good 🤙 you can set that up for local dev with something like mkcert

    1 Like

  • Profilbild von Parssa Kyanzadeh

    @ParssaKyanzadeh

    wait can you use this without asking for any permissions on the user's device?

    1 Like

  • Profilbild von Roronoa.Zoro

    @Headnewton356

    top of mind

  • Profilbild von Chirag Madhu

    @designsbychirag

    Wild how smooth this feels with device orientation

  • Profilbild von Luke Haines

    @LukeGainzz

    This one is so impressive man thanks for sharing

  • Profilbild von take a puff dawg

    @pufferkeefer

    Take my fkn money man Take bags full of it pls

  • Profilbild von Robert Crocker

    @robcrock

    Duuude, what is this emulator 🤤