home.social

#cssgradient — Public Fediverse posts

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

  1. That is, we need to add:
    i*2*α_dx

    If k > 1, then we need to add half a turn as well, that is:
    round(down, k)*180°

    Adding these to the angular progress along the edge, we get the conic-gradient angle producing a point that moves at constant speed along the perimeter.

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

  2. That is, we need to add:
    i*2*α_dx

    If k > 1, then we need to add half a turn as well, that is:
    round(down, k)*180°

    Adding these to the angular progress along the edge, we get the conic-gradient angle producing a point that moves at constant speed along the perimeter.

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

  3. That is, we need to add:
    i*2*α_dx

    If k > 1, then we need to add half a turn as well, that is:
    round(down, k)*180°

    Adding these to the angular progress along the edge, we get the conic-gradient angle producing a point that moves at constant speed along the perimeter.

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

  4. That is, we need to add:
    i*2*α_dx

    If k > 1, then we need to add half a turn as well, that is:
    round(down, k)*180°

    Adding these to the angular progress along the edge, we get the conic-gradient angle producing a point that moves at constant speed along the perimeter.

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

  5. If progress at the bottom left corner (= at half the perimeter starting from the top right corner) is 1, then progress at the bottom right corner is the height 100cqh over half the perimeter (one height 100cqh plus one width 100cqw):

    f = 100cqh/(100cqh + 100cqw)

    Dividing lengths is supported by Safari & Chrome + we have a Firefox fallback frontendmasters.com/blog/count

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

  6. If progress at the bottom left corner (= at half the perimeter starting from the top right corner) is 1, then progress at the bottom right corner is the height 100cqh over half the perimeter (one height 100cqh plus one width 100cqw):

    f = 100cqh/(100cqh + 100cqw)

    Dividing lengths is supported by Safari & Chrome + we have a Firefox fallback frontendmasters.com/blog/count

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

  7. If progress at the bottom left corner (= at half the perimeter starting from the top right corner) is 1, then progress at the bottom right corner is the height 100cqh over half the perimeter (one height 100cqh plus one width 100cqw):

    f = 100cqh/(100cqh + 100cqw)

    Dividing lengths is supported by Safari & Chrome + we have a Firefox fallback frontendmasters.com/blog/count

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

  8. If progress at the bottom left corner (= at half the perimeter starting from the top right corner) is 1, then progress at the bottom right corner is the height 100cqh over half the perimeter (one height 100cqh plus one width 100cqw):

    f = 100cqh/(100cqh + 100cqw)

    Dividing lengths is supported by Safari & Chrome + we have a Firefox fallback frontendmasters.com/blog/count

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

  9. Anyway, what we want to animate here linearly isn't a conic-gradient() angle, it's the progress around the perimeter.

    This is k, going from 0 to 2. When k is 0, we're at the top right corner. When it's 1, we're at the bottom left corner, having gone across half the perimeter.

    What about the progress value at the bottom right? We'll be calling that f, but how much is it?

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

  10. Anyway, what we want to animate here linearly isn't a conic-gradient() angle, it's the progress around the perimeter.

    This is k, going from 0 to 2. When k is 0, we're at the top right corner. When it's 1, we're at the bottom left corner, having gone across half the perimeter.

    What about the progress value at the bottom right? We'll be calling that f, but how much is it?

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

  11. Anyway, what we want to animate here linearly isn't a conic-gradient() angle, it's the progress around the perimeter.

    This is k, going from 0 to 2. When k is 0, we're at the top right corner. When it's 1, we're at the bottom left corner, having gone across half the perimeter.

    What about the progress value at the bottom right? We'll be calling that f, but how much is it?

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

  12. Anyway, what we want to animate here linearly isn't a conic-gradient() angle, it's the progress around the perimeter.

    This is k, going from 0 to 2. When k is 0, we're at the top right corner. When it's 1, we're at the bottom left corner, having gone across half the perimeter.

    What about the progress value at the bottom right? We'll be calling that f, but how much is it?

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

  13. On gradient borders & common issues with them reddit.com/r/css/comments/1tfm

    If you've ever wanted to create constant length/ speed border segments on non-square boxes, the how behind the mathy, less code + working with border-radius solution & the stacked children solution (no border-radius).

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

  14. On gradient borders & common issues with them reddit.com/r/css/comments/1tfm

    If you've ever wanted to create constant length/ speed border segments on non-square boxes, the how behind the mathy, less code + working with border-radius solution & the stacked children solution (no border-radius).

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

  15. On gradient borders & common issues with them reddit.com/r/css/comments/1tfm

    If you've ever wanted to create constant length/ speed border segments on non-square boxes, the how behind the mathy, less code + working with border-radius solution & the stacked children solution (no border-radius).

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

  16. On gradient borders & common issues with them reddit.com/r/css/comments/1tfm

    If you've ever wanted to create constant length/ speed border segments on non-square boxes, the how behind the mathy, less code + working with border-radius solution & the stacked children solution (no border-radius).

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

  17. 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

  18. 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

  19. 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

  20. 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

  21. 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

  22. Torn on @codepen: codepen.io/thebabydino/pen/XWQ

    Absolutely no text duplication whatsoever, not in the markup, not in the `content` of any pseudo. No images save for the "newspaper" background (which doesn't include the torn edges, screen #2) and for #CSS gradients.

    Just some #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #textEffects #code #textEffect #coding #frontend #web #dev #webDevelopment #webDev

  23. Torn on @codepen: codepen.io/thebabydino/pen/XWQ

    Absolutely no text duplication whatsoever, not in the markup, not in the `content` of any pseudo. No images save for the "newspaper" background (which doesn't include the torn edges, screen #2) and for #CSS gradients.

    Just some #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #textEffects #code #textEffect #coding #frontend #web #dev #webDevelopment #webDev

  24. Torn on @codepen: codepen.io/thebabydino/pen/XWQ

    Absolutely no text duplication whatsoever, not in the markup, not in the `content` of any pseudo. No images save for the "newspaper" background (which doesn't include the torn edges, screen #2) and for #CSS gradients.

    Just some #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #textEffects #code #textEffect #coding #frontend #web #dev #webDevelopment #webDev

  25. Torn on @codepen: codepen.io/thebabydino/pen/XWQ

    Absolutely no text duplication whatsoever, not in the markup, not in the `content` of any pseudo. No images save for the "newspaper" background (which doesn't include the torn edges, screen #2) and for #CSS gradients.

    Just some #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #textEffects #code #textEffect #coding #frontend #web #dev #webDevelopment #webDev

  26. Torn on @codepen: codepen.io/thebabydino/pen/XWQ

    Absolutely no text duplication whatsoever, not in the markup, not in the `content` of any pseudo. No images save for the "newspaper" background (which doesn't include the torn edges, screen #2) and for #CSS gradients.

    Just some #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #textEffects #code #textEffect #coding #frontend #web #dev #webDevelopment #webDev

  27. Multilayer candy effect with no text duplication. In fact, this is contenteditable, no JS required 🐱

    Check out the live demo on @codepen codepen.io/thebabydino/pen/XWO

    Just a bit of #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #code #coding #web #dev #webDev #webDevelopment #CSS #frontend #textEffect #textEffects

  28. Multilayer candy effect with no text duplication. In fact, this is contenteditable, no JS required 🐱

    Check out the live demo on @codepen codepen.io/thebabydino/pen/XWO

    Just a bit of #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #code #coding #web #dev #webDev #webDevelopment #CSS #frontend #textEffect #textEffects

  29. Multilayer candy effect with no text duplication. In fact, this is contenteditable, no JS required 🐱

    Check out the live demo on @codepen codepen.io/thebabydino/pen/XWO

    Just a bit of #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #code #coding #web #dev #webDev #webDevelopment #CSS #frontend #textEffect #textEffects

  30. Multilayer candy effect with no text duplication. In fact, this is contenteditable, no JS required 🐱

    Check out the live demo on @codepen codepen.io/thebabydino/pen/XWO

    Just a bit of #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #code #coding #web #dev #webDev #webDevelopment #CSS #frontend #textEffect #textEffects

  31. Multilayer candy effect with no text duplication. In fact, this is contenteditable, no JS required 🐱

    Check out the live demo on @codepen codepen.io/thebabydino/pen/XWO

    Just a bit of #SVG #filter magic! 🪄✨

    #svgFilter #cssGradient #code #coding #web #dev #webDev #webDevelopment #CSS #frontend #textEffect #textEffects

  32. 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

  33. 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

  34. 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

  35. 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

  36. 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

  37. 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