home.social

#cssmask — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #cssmask, aggregated by home.social.

  1. Because someone hearted this old @codepen demo done with 2 radio buttons + their labels in a group and it made me notice the title still said "smooth transition Chromium only" - it's been working cross-browser since the summer of 2024! 🥳🎉🎇

    codepen.io/thebabydino/pen/Bad

    #CSS #cssGradient #cssMask #coding #web #dev #webDev #webDevelopment #code #frontend

  2. Missed this, made on the 1st of Jan on @codepen:

    ✨ Sliding border glow on hover for beveled cards, heavily commented codepen.io/thebabydino/pen/Eay

    Trivial if we have `corner-shape` support & even simpler with `border-area`. But here it's cross-browser.

    Detailed explanation of the Maths behind on Ko-fi/ Patreon. This way, you get to both become smarter and support my work so I can continue coding.

    #CSS #Maths #cssMaths #cssGradient #cssMask #code #coding #frontend #web #dev #webDev #webDevelopment

  3. Missed this, made on the 1st of Jan on @codepen:

    ✨ Sliding border glow on hover for beveled cards, heavily commented codepen.io/thebabydino/pen/Eay

    Trivial if we have `corner-shape` support & even simpler with `border-area`. But here it's cross-browser.

    Detailed explanation of the Maths behind on Ko-fi/ Patreon. This way, you get to both become smarter and support my work so I can continue coding.

    #CSS #Maths #cssMaths #cssGradient #cssMask #code #coding #frontend #web #dev #webDev #webDevelopment

  4. Missed this, made on the 1st of Jan on @codepen:

    ✨ Sliding border glow on hover for beveled cards, heavily commented codepen.io/thebabydino/pen/Eay

    Trivial if we have `corner-shape` support & even simpler with `border-area`. But here it's cross-browser.

    Detailed explanation of the Maths behind on Ko-fi/ Patreon. This way, you get to both become smarter and support my work so I can continue coding.

    #CSS #Maths #cssMaths #cssGradient #cssMask #code #coding #frontend #web #dev #webDev #webDevelopment

  5. Missed this, made on the 1st of Jan on @codepen:

    ✨ Sliding border glow on hover for beveled cards, heavily commented codepen.io/thebabydino/pen/Eay

    Trivial if we have `corner-shape` support & even simpler with `border-area`. But here it's cross-browser.

    Detailed explanation of the Maths behind on Ko-fi/ Patreon. This way, you get to both become smarter and support my work so I can continue coding.

    #CSS #Maths #cssMaths #cssGradient #cssMask #code #coding #frontend #web #dev #webDev #webDevelopment

  6. RE: mastodon.social/@anatudor/1159

    Also, if you're on actual Safari, could you let me know if the `backdrop-filter` gets applied correctly?

    I tested in Epiphany & seemed fine, but someone said it's not working because of the lack of the `-webkit-` prefix?

    As far as I know, that should not be the case and it's not the case from my Epiphany testing for other demos as wll, not just this one, but if anyone has more info, let me know.

    If you can't test yourself, boosts appreciated.

    Thanks!

    #CSS #filter #cssFilter #cssMask #coding

  7. RE: mastodon.social/@anatudor/1159

    Also, if you're on actual Safari, could you let me know if the `backdrop-filter` gets applied correctly?

    I tested in Epiphany & seemed fine, but someone said it's not working because of the lack of the `-webkit-` prefix?

    As far as I know, that should not be the case and it's not the case from my Epiphany testing for other demos as wll, not just this one, but if anyone has more info, let me know.

    If you can't test yourself, boosts appreciated.

    Thanks!

    #CSS #filter #cssFilter #cssMask #coding

  8. RE: mastodon.social/@anatudor/1159

    Also, if you're on actual Safari, could you let me know if the `backdrop-filter` gets applied correctly?

    I tested in Epiphany & seemed fine, but someone said it's not working because of the lack of the `-webkit-` prefix?

    As far as I know, that should not be the case and it's not the case from my Epiphany testing for other demos as wll, not just this one, but if anyone has more info, let me know.

    If you can't test yourself, boosts appreciated.

    Thanks!

    #CSS #filter #cssFilter #cssMask #coding

  9. RE: mastodon.social/@anatudor/1159

    Also, if you're on actual Safari, could you let me know if the `backdrop-filter` gets applied correctly?

    I tested in Epiphany & seemed fine, but someone said it's not working because of the lack of the `-webkit-` prefix?

    As far as I know, that should not be the case and it's not the case from my Epiphany testing for other demos as wll, not just this one, but if anyone has more info, let me know.

    If you can't test yourself, boosts appreciated.

    Thanks!

    #CSS #filter #cssFilter #cssMask #coding

  10. RE: mastodon.social/@anatudor/1159

    Also, if you're on actual Safari, could you let me know if the `backdrop-filter` gets applied correctly?

    I tested in Epiphany & seemed fine, but someone said it's not working because of the lack of the `-webkit-` prefix?

    As far as I know, that should not be the case and it's not the case from my Epiphany testing for other demos as wll, not just this one, but if anyone has more info, let me know.

    If you can't test yourself, boosts appreciated.

    Thanks!

    #CSS #filter #cssFilter #cssMask #coding

  11. Different `backdrop-filter` effect for navbar vs. its buttons - how would you get this result?

    Think about it for a little bit before checking my solution, which you can find on @codepen codepen.io/thebabydino/pen/NPr

    PS: I really wanted to make this #CSS only, even if SVG filters can do better.

    #filter #cssFilter #cssGradient #cssMask #web #dev #webDev #webDevelopment #code #coding #frontend

  12. Different `backdrop-filter` effect for navbar vs. its buttons - how would you get this result?

    Think about it for a little bit before checking my solution, which you can find on @codepen codepen.io/thebabydino/pen/NPr

    PS: I really wanted to make this #CSS only, even if SVG filters can do better.

    #filter #cssFilter #cssGradient #cssMask #web #dev #webDev #webDevelopment #code #coding #frontend

  13. Different `backdrop-filter` effect for navbar vs. its buttons - how would you get this result?

    Think about it for a little bit before checking my solution, which you can find on @codepen codepen.io/thebabydino/pen/NPr

    PS: I really wanted to make this #CSS only, even if SVG filters can do better.

    #filter #cssFilter #cssGradient #cssMask #web #dev #webDev #webDevelopment #code #coding #frontend

  14. Different `backdrop-filter` effect for navbar vs. its buttons - how would you get this result?

    Think about it for a little bit before checking my solution, which you can find on @codepen codepen.io/thebabydino/pen/NPr

    PS: I really wanted to make this #CSS only, even if SVG filters can do better.

    #filter #cssFilter #cssGradient #cssMask #web #dev #webDev #webDevelopment #code #coding #frontend

  15. Different `backdrop-filter` effect for navbar vs. its buttons - how would you get this result?

    Think about it for a little bit before checking my solution, which you can find on @codepen codepen.io/thebabydino/pen/NPr

    PS: I really wanted to make this #CSS only, even if SVG filters can do better.

    #filter #cssFilter #cssGradient #cssMask #web #dev #webDev #webDevelopment #code #coding #frontend

  16. How would you create such a sliding glow effect on `:hover`? Trivial with `corner-shape`, but what about making it work cross-browser now?

    Think about it, then check my solution on @codepen codepen.io/thebabydino/pen/Eay

    Detailed explanation of the Maths behind (with drawings) on Ko-fi/ Patreon. This way you get to both become smarter and support my work so I can continue coding.

    #CSS #cssGradient #cssMask #coding #cornerShape #code #frontend #Maths #web #dev #webDev #webDevelopment #trigonometry

  17. Avatar border effect. Single `img` element (so no pseudos), minimal #CSS. Real transparency between actual image and border.

    Live on @codepen codepen.io/thebabydino/pen/RwK

    #code #cssGradient #cssMask #coding #web #dev #webDev #webDevelopment #frontend

  18. If 2 in 1 isn't enough, here's a 3 in 1 demo on @codepen: 3 cross-browser approaches (so no `corner-shape`) for getting a scooped corners, responsive shape with a border: codepen.io/thebabydino/pen/pvo

    Includes a list of pros & cons for each.

    #CSS #SVG #filter #svgFilter #cssMask #mask #code #coding #frontend #web #dev #webDevelopment #webDev

  19. One fancy shape, two cross-browser techniques to get it (and no, neither of them is `shape()`, I said cross-browser 😼)

    Check it out on @codepen codepen.io/thebabydino/pen/zxO

    #CSS #SVG #mask #cssMask #svgFilter #web #dev #webDev #webDevelopment #code #coding #frontend

  20. Hey, I made a thing for this week's complementaries challenge on @codepen: codepen.io/thebabydino/details

    (if you're a Ko-fi/Patreon supporter, you may have already seen the pre-prettified version)

    The description has a detailed "behind the demo" explanation.

    Enjoy!

    #SVG #filter #CodePenChallenge #CSS #cssMask #svgFilter #JS #JavaScript
    #code #coding #frontend #controls #web #dev #webDev #webDevelopment

  21. I made a little thing on @codepen :pure #CSS #scroll controlled swipe transition codepen.io/thebabydino/pen/azO

    Note how the swipe always clockwise, regardless of scroll direction and how the text fades in after the swipe in.

    Inspiration x.com/avanderpotte/status/1923
    (via @codrops motion highlights roundup)

    cc @bramus

    #scrollAnimation #code #coding #frontend #cssGradient #cssMask #conicGradient #cssMaths #maths #scrollEffect #cssGrid #web #dev #webDev #webDevelopment

  22. I made a little thing on @codepen :pure #CSS #scroll controlled swipe transition codepen.io/thebabydino/pen/azO

    Note how the swipe always clockwise, regardless of scroll direction and how the text fades in after the swipe in.

    Inspiration x.com/avanderpotte/status/1923
    (via @codrops motion highlights roundup)

    cc @bramus

    #scrollAnimation #code #coding #frontend #cssGradient #cssMask #conicGradient #cssMaths #maths #scrollEffect #cssGrid #web #dev #webDev #webDevelopment

  23. I made a little thing on @codepen :pure #CSS #scroll controlled swipe transition codepen.io/thebabydino/pen/azO

    Note how the swipe always clockwise, regardless of scroll direction and how the text fades in after the swipe in.

    Inspiration x.com/avanderpotte/status/1923
    (via @codrops motion highlights roundup)

    cc @bramus

    #scrollAnimation #code #coding #frontend #cssGradient #cssMask #conicGradient #cssMaths #maths #scrollEffect #cssGrid #web #dev #webDev #webDevelopment

  24. I made a little thing on @codepen :pure #CSS #scroll controlled swipe transition codepen.io/thebabydino/pen/azO

    Note how the swipe always clockwise, regardless of scroll direction and how the text fades in after the swipe in.

    Inspiration x.com/avanderpotte/status/1923
    (via @codrops motion highlights roundup)

    cc @bramus

    #scrollAnimation #code #coding #frontend #cssGradient #cssMask #conicGradient #cssMaths #maths #scrollEffect #cssGrid #web #dev #webDev #webDevelopment

  25. I made a little thing on @codepen :pure #CSS #scroll controlled swipe transition codepen.io/thebabydino/pen/azO

    Note how the swipe always clockwise, regardless of scroll direction and how the text fades in after the swipe in.

    Inspiration x.com/avanderpotte/status/1923
    (via @codrops motion highlights roundup)

    cc @bramus

    #scrollAnimation #code #coding #frontend #cssGradient #cssMask #conicGradient #cssMaths #maths #scrollEffect #cssGrid #web #dev #webDev #webDevelopment

  26. 1️⃣2️⃣ 486 ❤️ Pure #CSS 1 div card backgrounds codepen.io/thebabydino/pen/GRR

    Using mask compositing, which I explained in this @csstricks article css-tricks.com/mask-compositin

    Another where I should go through the code and improve it as it can be simplified nowadays... a lot even!

    #cssMask #code #coding #cssGradient #web #dev #webDev #webDevelopment #frontend

  27. 5️⃣ 850 ♥️ No SVG, no image fluid slider codepen.io/thebabydino/pen/qBy

    #JS used only for
    a) feature support detection
    b) updating slider value in --val

    Uses only
    1 × input[type=range] for actual slider
    1 × output for current value display
    1 × datalist for ruler

    One of my best sliders on @codepen.

    #CSS #slider #rangeInput #coding #web #dev #webDevelopment #webDev #code #frontend #cssGrid #cssMask #cssGradient

  28. #tinyCSStip `clip-path` or `mask` are applied after `filter`.

    This means we cannot clip/ mask, then add a `drop-shadow()` on the same element for the clipped/ masked shape.

    We need to apply the `filter` on a parent of the clipped/ masked (pseudo-)element.

    codepen.io/thebabydino/pen/BRR

    #CSS #filter #cssFilter #clipPath #clipping #cssClipPath #cssMask #coding #frontend #web #dev #webDev #webDevelopment #code

  29. If what you want isn't beveled, but scooped corners, then you can do it with a `radial-gradient()` mask. You can even add borders too!

    Here's a @codepen demo illustrating this codepen.io/thebabydino/pen/VYw

    Pure #CSS, no SVG.

    #cssGradient #cssMask #coding #frontend #web #dev #webDev #webDevelopment #code