正在加载视频...

视频加载失败

CSS card parallax with pointermove + custom props 🧑‍🍳 <div class=ring style="--i: 2"> .ring { translate: calc(var(--px) * (var(--i) * -2rem)) calc(var(--py) * (var(--i) * 2rem)); } trick: pointer mapping to rotate card in 3D + translate rings 2D for the illusion 🤙 check it 👇

307,288 次观看 • 11 个月前 •via X (Twitter)

39 条评论

Lúcás 的头像
Lúcás11 个月前

Just needed to wait for the legend to catch in this . You’re cooking!

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ11 个月前

i was baited in with the tags haha 😅

Fede 的头像
Fede11 个月前

man you're crazy. it looks better than the prototype

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ11 个月前

too kind Fede 🤙 fun one to build!

Yadu 的头像
Yadu11 个月前

That's crazy

pedro costa — oss/acc 的头像
pedro costa — oss/acc11 个月前

i’m convinced you are literally a wizard

Dominik Scholz 的头像
Dominik Scholz11 个月前

love it!

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ11 个月前

thank you sir! 🙏

Muheer 的头像
Muheer11 个月前

Css god 🙏🏻

₿ruta | Yordan Hristov 的头像
₿ruta | Yordan Hristov11 个月前

wait what how.... Are you thinking in algebra?

Seb Cornelius 的头像
Seb Cornelius11 个月前

Hell yeah

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ11 个月前

lovely design Seb, couldn't resist 🤙 saw some people asking for CSS versions, got tagged, threw it together quick before bed 😅

Seb Cornelius 的头像
Seb Cornelius11 个月前

Always love your stuff Jhey - feel free to build literally anything I make. Maybe we can collab on something dope in the future.

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ11 个月前

thanks Seb, appreciate that 🙏 these card designs are really neat that would be awesome 🤙 (love things like this design because you can bring them to life with not too much code, it's like this one 👇)

Seb Cornelius 的头像
Seb Cornelius11 个月前

Thats rad

Chuks Gabriel 的头像
Chuks Gabriel11 个月前

👒 up...

Mauro 的头像
Mauro11 个月前

🐐

bfuzzy 的头像
bfuzzy11 个月前

dope.

Senegal Coupe Du Monde 2030 (svp) 🇸🇳🇫🇷 的头像
Senegal Coupe Du Monde 2030 (svp) 🇸🇳🇫🇷11 个月前

You are literally a wizard

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ11 个月前

@ved_aida tryin' 🫡

Ajay Patel 的头像
Ajay Patel11 个月前

So creative, looks really good

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ11 个月前

jus' tappin' into some tricks i've been sharing, it was good timing 😅

Anko Painting 的头像
Anko Painting11 个月前

How do you populate px? Js?

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ11 个月前

that's from pointermove/deviceorientation and maps from -1 to 1 on both axis (shown in video kinda) that then gets passed into CSS so it can do what it wants with the value 🤙

Elliot Otoijagha 的头像
Elliot Otoijagha11 个月前

Are you the God of CSS? 😭😭

jhey ʕ•ᴥ•ʔ 的头像
jhey ʕ•ᴥ•ʔ11 个月前

@Ellydev0 haha – never!

⤴️🅰️💲🟡N 的头像
⤴️🅰️💲🟡N11 个月前

like this?

Jargon is Easy 的头像
Jargon is Easy11 个月前

Hats Off! Buddy @SebCornelius and @jh3yy

Django 的头像
Django11 个月前

Wow bro it’s really good ,come on I want to know how to get it

cubiq 的头像
cubiq11 个月前

so wish that wed get preserved 3d even when the overflow is clipping the contents.. but these illusion hacks are cool enough <3 great job as always, Jhey!

Akshat Goel 的头像
Akshat Goel11 个月前

jhey blazzing fast 😭

Dennis H. A. van Leeuwen 🕹 的头像
Dennis H. A. van Leeuwen 🕹11 个月前

Cool

Ditectrev 的头像
Ditectrev11 个月前

Crazy🤯

NegiDesign 的头像
NegiDesign11 个月前

🔥🔥🔥

Tee Godwin 的头像
Tee Godwin11 个月前

Crazy stunting!

Anand Patel 的头像
Anand Patel11 个月前

It looks stunning bro!!!

cubiq 的头像
cubiq11 个月前

Just experimented with getting the perspective right, no hacks, actually proper, configurable perspective <3 ill make prettier looking demo and share it when it's done 🤍 (not a single line of js btw)

ikhwanb 的头像
ikhwanb11 个月前

Brilliant

Sosaingram 的头像
Sosaingram11 个月前

That's a very interesting one

相关视频