Making a ✨stacked✨ avatar list using maskImage. Works against any transparent background!!
@alfonsusac1838 Follower
39.466 Aufrufe
11 Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)

@jh3yy
@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
16 Likes

@alfonsusac
@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 🔥
3 Likes

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

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

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

@ruyymon
@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!
2 Likes

@MrHicugi
@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%; }
2 Likes

@alfonsusac
@tailwindcss Thanks! I appreciate it!
1 Like

@masnu81
@tailwindcss Cakepp
1 Like

@syofyan_zuhad
@tailwindcss Keren 🔥
1 Like

@alfonsusac
@tailwindcss thank you kak!
