Loading video...
Video Failed to Load
CSS Tip! ⭐️ You can use mix-blend-mode with scoped custom properties to create this inverted :hover effect 🤙 button > span { left: calc(var(--x, 0) * 1px); top: calc(var(--y, 0) * 1px); mix-blend-mode: difference; 👈 } The cool trick is that using mix-blend-mode acts like a color inverter which... show more
152,818 views • 2 years ago •via X (Twitter)
9 Comments

jhey ▲🐻🎈2 years ago
And here's the @CodePen link! 🚀 Sorry – Was hopping on a call with the legend @JohnPhamous ⚡️

Brandon McConnell2 years ago
W.h.e.r.e…i.s…t.h.e…C.o.d.e.P.e.n…l.i.n.k.?

Denis Avguštin2 years ago
You are some sort of wizard, right? I hope my clients never see your examples of "what can be done" 🤣

jhey ▲🐻🎈2 years ago
All you dude! 🤙

Achille2 years ago
How do you get good video quality on X? Compression is killing my videos.

Arnill Hasan2 years ago
Love this CSS magic! The hover effect is super sleek with mix-blend-mode.

Jordan Zucchiatti2 years ago
@tristanjoly_web look at that mofo

Kingsley Ibhasebhor2 years ago
Where do you find all these tips???

Sinan ☀2 years ago
this feels nice
