Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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 👇

82,223 görüntüleme • 11 ay önce •via X (Twitter)

24 Yorum

Dan Hollick profil fotoğrafı
Dan Hollick11 ay önce

Did not know about that sensor emulator, nice.

jhey ʕ•ᴥ•ʔ profil fotoğrafı
jhey ʕ•ᴥ•ʔ11 ay önce

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 🤓

Sahaj profil fotoğrafı
Sahaj11 ay önce

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

Junaid profil fotoğrafı
Junaid11 ay önce

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

amen profil fotoğrafı
amen11 ay önce

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

jhey ʕ•ᴥ•ʔ profil fotoğrafı
jhey ʕ•ᴥ•ʔ11 ay önce

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

savy profil fotoğrafı
savy11 ay önce

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

Ben Leonard profil fotoğrafı
Ben Leonard11 ay önce

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

jhey ʕ•ᴥ•ʔ profil fotoğrafı
jhey ʕ•ᴥ•ʔ11 ay önce

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

Asmit Malakannawar profil fotoğrafı
Asmit Malakannawar11 ay önce

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

diip3sh profil fotoğrafı
diip3sh11 ay önce

Didn’t know chromium had sensor dev tool

jhey ʕ•ᴥ•ʔ profil fotoğrafı
jhey ʕ•ᴥ•ʔ11 ay önce

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

diip3sh profil fotoğrafı
diip3sh11 ay önce

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

jhey ʕ•ᴥ•ʔ profil fotoğrafı
jhey ʕ•ᴥ•ʔ11 ay önce

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

Parssa Kyanzadeh profil fotoğrafı
Parssa Kyanzadeh11 ay önce

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

Roronoa.Zoro profil fotoğrafı
Roronoa.Zoro11 ay önce

top of mind

Chirag Madhu profil fotoğrafı
Chirag Madhu11 ay önce

Wild how smooth this feels with device orientation

Luke Haines profil fotoğrafı
Luke Haines11 ay önce

This one is so impressive man thanks for sharing

take a puff dawg profil fotoğrafı
take a puff dawg11 ay önce

Take my fkn money man Take bags full of it pls

Robert Crocker profil fotoğrafı
Robert Crocker11 ay önce

Duuude, what is this emulator 🤤

Seb Cornelius profil fotoğrafı
Seb Cornelius11 ay önce

Cool

Vigneshwar GK  profil fotoğrafı
Vigneshwar GK 11 ay önce

👍

Lúcás profil fotoğrafı
Lúcás11 ay önce

Absolute Magic!

dgr^esm profil fotoğrafı
dgr^esm11 ay önce

Smart! Had no idea it was there. Real device sensors need some inertia/dampening though.

Benzer Videolar