Загрузка видео...
Не удалось загрузить видео
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
375,402 просмотров • 2 лет назад •via X (Twitter)
Комментарии: 10

Will make sure to throw together the JavaScript proximity version too 🤙 Jus' gotta go kick some ball first ⚽️

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 🤦♂️

@rogie my css sensei strikes again

@rogie This is really neat 👀

@rogie cool animation sir 😍

@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? 🤯

@rogie

@rogie Looks very cool 🔥🔥🔥

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

@rogie No codepen link?
