正在加载视频...
视频加载失败
CSS Trick ⚡️ (˗ˏˋ rogie ˎˊ˗ challenge edition 🤙) You can create this secret code reveal with only CSS using :has() and trig functions 🔥 .digit::hover + .digit, .digit:has(+ .digit:hover) { --active: var(--lerp-1); } :root { --lerp-1: calc(sin(50deg)); } .digit { scale: calc(var(--active) + 0.5); } There are a... show more
10 条评论

jhey ▲🐻🎈2 年前
Will make sure to throw together the JavaScript proximity version too 🤙 Jus' gotta go kick some ball first ⚽️

jhey ▲🐻🎈2 年前
Here's the @Codepen link! 😬 Need :has() for this one so Safari or Chrome. Although I guess it will still work in Firefox kinda. You'll only be able to glide one way 🤔 p.s Sorry, I rushed out the door for soccer and didn't get the link posted 🤦♂️

jaja🫨2 年前
@rogie my css sensei strikes again

Marc Backes2 年前
@rogie This is really neat 👀

Binh Nguyen2 年前
@rogie cool animation sir 😍

ionel Lupu2 年前
@rogie My friend, how do you do this? How do you come up with these ideas? How did you know you can implement this using CSS only? 🤯

Matt2 年前
@rogie

Viki ✨2 年前
@rogie Looks very cool 🔥🔥🔥

Ammy2 年前
@rogie Let me go recreate this in framer. Once I am done I will tag you.

Brandon McConnell2 年前
@rogie No codepen link?
