Loading video...

Video Failed to Load

Go Home

Making a ✨stacked✨ avatar list using maskImage. Works against any transparent background!! Using Tailwind CSS v4. Recorded and edited using

39,397 views • 1 year ago •via X (Twitter)

11 Comments

jhey ▲🐻🎈's profile picture
jhey ▲🐻🎈1 year ago

@tailwindcss it's such a minor detail but we all appreciate it when it's there 😅 reminds me that I need to finish the post for this one

Alfon's profile picture
Alfon1 year ago

@tailwindcss Not sure about the use-case but I converted your implementation into a utility class where you can control the width like with-outline-mask-2 with-outline-mask-8 with-outline-mask-4 Using `+` selector to "sync" the mask is pretty genius 🔥

Bryan Berger's profile picture
Bryan Berger1 year ago

@tailwindcss got tired of this in Figma, made a thing a while back, code in the thread

Tim's profile picture
Tim1 year ago

@tailwindcss Is it more easier to use ring for masking?

Alfon's profile picture
Alfon1 year ago

@tailwindcss Im not sure about that approach. Can you give me more clue/hint on what you mean? 👀

Ruy Monteiro's profile picture
Ruy Monteiro1 year ago

@tailwindcss This is the kind of thing where there’s a right way to build it and a working way… I’ve always done it using outlines with the same color as the background. Your solution is so much more elegant! Loved it!

Mag's profile picture
Mag1 year ago

@tailwindcss Here is a quick approach if your background is static color: body { --bg-color: #fff; } .cards { display: flex; } .card { margin-left: -20px; border: 10px solid var(--bg-color); border-radius: 100%; }

Alfon's profile picture
Alfon1 year ago

@tailwindcss Thanks! I appreciate it!

Nuha F's profile picture
Nuha F1 year ago

@tailwindcss Cakepp

Syofyan Zuhad 🇵🇸's profile picture
Syofyan Zuhad 🇵🇸1 year ago

@tailwindcss Keren 🔥

Alfon's profile picture
Alfon1 year ago

@tailwindcss thank you kak!

Related Videos