Loading video...
Video Failed to Load
CSS Tip! 🤙 You can use mask-composite and some JavaScript to create this pointer proximity following glow border ✨ .glow { mask-composite: intersect; mask-clip: padding-box, border-box; mask: linear-gradient(#0000, #0000), conic-gradient(#0000 0deg, #fff, #0000 45deg); } The trick is to mask a background-image with a combination of mask layers. mask-composite:... show more
1,179,179 views • 2 years ago •via X (Twitter)
11 Comments

Here's that @CodePen link! 🚀 Can't resist a glowy border demo 🙃 Was meant to be finishing something else this evening but that'll have to wait I guess 😅

This is the kind of magic I’m here for 🙌

Thanks Dave 🙏 Appreciate it. Sometimes I throw these together and think "Meh" 😅 The video compression kinda butchers it and it's hard to explain the moving parts but no need for overlays, etc. 🤙 Can clip away the parts you don't need and then apply a blur to get the glowy border ✨

I need a jheyGPT to write my CSS

I've really gotta add some fancy glowing gradients to Script Kit in the next release...

You are killing it, just your tweets are better than any frontend course out there.

Thanks Natko! 🙏 We need to get them all onto their own website, stat! 😅

Years ago I had to do this same effect with lots of SVG and JavaScript 😅

Damn thats a lot of tabs haha

@jh3yy The scroll is lagging when page has conic-gradient, do you have any idea how to solve it?

Impossible to say without seeing a demo. But, it's fine for this demo as people have shown me their uses of it in production 🤙
