跳过导航
Making a ✨stacked✨ avatar list using maskImage. Works against any transparent background!!
0:00 / 1:14

Making a ✨stacked✨ avatar list using maskImage. Works against any transparent background!!

Alfon

@alfonsusac1838 位关注者

在 X 上查看
482 个赞下载原帖

39,466 次观看

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

11 条评论

评论来自 X (Twitter) 上的原帖

  • jhey ▲🐻🎈 的头像

    @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 个赞

  • Alfon 的头像

    @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 个赞

  • Bryan Berger 的头像

    @bryanberger

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

    3 个赞

  • Tim 的头像

    @timtbdev

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

    2 个赞

  • Alfon 的头像

    @alfonsusac

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

    1 个赞

  • Ruy Monteiro 的头像

    @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 个赞

  • Mag 的头像

    @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 个赞

  • Alfon 的头像

    @alfonsusac

    @tailwindcss Thanks! I appreciate it!

    1 个赞

  • Nuha F 的头像

    @masnu81

    @tailwindcss Cakepp

    1 个赞

  • Syofyan Zuhad 🇵🇸 的头像

    @syofyan_zuhad

    @tailwindcss Keren 🔥

    1 个赞

  • Alfon 的头像

    @alfonsusac

    @tailwindcss thank you kak!