Loading video...
Video Failed to Load
You can create the outer radius with CSS alone and no SVG 🤙 1. Create 2 elements 2x the radius size 2. Pin each side 3. Clip segment: clip-path: inset(50% 50% 0 0) 4. Radial gradient mask a pseudo 5. Border the other 6. Flip one side with scale:... show more
100,645 views • 1 year ago •via X (Twitter)
10 Comments

Know some people don't like digging out the SVG and you could control it with CSS all the way like this 🤙 Love the little challenge of making the border. Did this for an article a few years back Anyways, here's the @CodePen 🚀

Some weirdness happening here where it doesn't quite line up on mobile device 🙃 Not sure why. The technique adds up. Not sure if I'll get round to fixing it up though 🥲

🐛

Hmm - Tried a couple of things. I must be missing something I've added here to make it do that. Seems to be fine until on a mobile device 🤔 Kinda annoying because the technique adds up

Waiting for your css course 🫢

Need to make it happen 💯

Ouu, thanks for sharing man!

Which editor you are using??

Super! 👌

👏👏
