home.social

#inset — Public Fediverse posts

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

  1. Top layer has all 3 RGB channels 0 in this case ⇒ black inner shadow.

    We paint it orangey using feColorMatrix as detailed here mastodon.social/@anatudor/1121

    Finally, we put it on top of SourceGraphic (bottom layer in2 input). This is done with the default (normal) mode for feBlend.

    #svg #filter #svgFilter #blending #compositing #blendMode #alpha #inset #shadow #css #code #coding #web #dev #webDev #frontend #webDevelopment

  2. Top layer has all 3 RGB channels 0 in this case ⇒ black inner shadow.

    We paint it orangey using feColorMatrix as detailed here mastodon.social/@anatudor/1121

    Finally, we put it on top of SourceGraphic (bottom layer in2 input). This is done with the default (normal) mode for feBlend.

    #svg #filter #svgFilter #blending #compositing #blendMode #alpha #inset #shadow #css #code #coding #web #dev #webDev #frontend #webDevelopment

  3. Top layer has all 3 RGB channels 0 in this case ⇒ black inner shadow.

    We paint it orangey using feColorMatrix as detailed here mastodon.social/@anatudor/1121

    Finally, we put it on top of SourceGraphic (bottom layer in2 input). This is done with the default (normal) mode for feBlend.

    #svg #filter #svgFilter #blending #compositing #blendMode #alpha #inset #shadow #css #code #coding #web #dev #webDev #frontend #webDevelopment

  4. Top layer has all 3 RGB channels 0 in this case ⇒ black inner shadow.

    We paint it orangey using feColorMatrix as detailed here mastodon.social/@anatudor/1121

    Finally, we put it on top of SourceGraphic (bottom layer in2 input). This is done with the default (normal) mode for feBlend.

    #svg #filter #svgFilter #blending #compositing #blendMode #alpha #inset #shadow #css #code #coding #web #dev #webDev #frontend #webDevelopment

  5. Top layer has all 3 RGB channels 0 in this case ⇒ black inner shadow.

    We paint it orangey using feColorMatrix as detailed here mastodon.social/@anatudor/1121

    Finally, we put it on top of SourceGraphic (bottom layer in2 input). This is done with the default (normal) mode for feBlend.

    #svg #filter #svgFilter #blending #compositing #blendMode #alpha #inset #shadow #css #code #coding #web #dev #webDev #frontend #webDevelopment

  6. While I've seen the rare #SVG solution among the SO answers, I found those filters to be too complicated. So here's a much simpler SVG version, step by step 👆

    Live demo codepen.io/thebabydino/pen/gOB also for this week's #CodePenChallenge

    No wrapper, no losing right click menu on img if not setting `pointer-events: none` on element on top of img in z order.

    #CodePen #css #filter #svgFilter #shadow #inset #code #coding #frontend #web #dev #webDevelopment #webDev

  7. While I've seen the rare #SVG solution among the SO answers, I found those filters to be too complicated. So here's a much simpler SVG version, step by step 👆

    Live demo codepen.io/thebabydino/pen/gOB also for this week's #CodePenChallenge

    No wrapper, no losing right click menu on img if not setting `pointer-events: none` on element on top of img in z order.

    #CodePen #css #filter #svgFilter #shadow #inset #code #coding #frontend #web #dev #webDevelopment #webDev

  8. While I've seen the rare #SVG solution among the SO answers, I found those filters to be too complicated. So here's a much simpler SVG version, step by step 👆

    Live demo codepen.io/thebabydino/pen/gOB also for this week's #CodePenChallenge

    No wrapper, no losing right click menu on img if not setting `pointer-events: none` on element on top of img in z order.

    #CodePen #css #filter #svgFilter #shadow #inset #code #coding #frontend #web #dev #webDevelopment #webDev

  9. While I've seen the rare #SVG solution among the SO answers, I found those filters to be too complicated. So here's a much simpler SVG version, step by step 👆

    Live demo codepen.io/thebabydino/pen/gOB also for this week's #CodePenChallenge

    No wrapper, no losing right click menu on img if not setting `pointer-events: none` on element on top of img in z order.

    #CodePen #css #filter #svgFilter #shadow #inset #code #coding #frontend #web #dev #webDevelopment #webDev

  10. While I've seen the rare #SVG solution among the SO answers, I found those filters to be too complicated. So here's a much simpler SVG version, step by step 👆

    Live demo codepen.io/thebabydino/pen/gOB also for this week's #CodePenChallenge

    No wrapper, no losing right click menu on img if not setting `pointer-events: none` on element on top of img in z order.

    #CodePen #css #filter #svgFilter #shadow #inset #code #coding #frontend #web #dev #webDevelopment #webDev

  11. Almost all solutions I've seen involve wrapping the image in a wrapper, then either moving it behind its parent or placing an absolutely positioned pseudo on top, such that another element/ pseudo on top gets the shadow.

    This means an extra element and often losing right click menu, save for the rare cases when the element on top of the img in z order gets `pointer-events: none`.

    #css #shadow #boxShadow #inset #code #coding #frontend #web #dev #webDev #webDevelopment #shadows

  12. Almost all solutions I've seen involve wrapping the image in a wrapper, then either moving it behind its parent or placing an absolutely positioned pseudo on top, such that another element/ pseudo on top gets the shadow.

    This means an extra element and often losing right click menu, save for the rare cases when the element on top of the img in z order gets `pointer-events: none`.

    #css #shadow #boxShadow #inset #code #coding #frontend #web #dev #webDev #webDevelopment #shadows

  13. Almost all solutions I've seen involve wrapping the image in a wrapper, then either moving it behind its parent or placing an absolutely positioned pseudo on top, such that another element/ pseudo on top gets the shadow.

    This means an extra element and often losing right click menu, save for the rare cases when the element on top of the img in z order gets `pointer-events: none`.

    #css #shadow #boxShadow #inset #code #coding #frontend #web #dev #webDev #webDevelopment #shadows

  14. Almost all solutions I've seen involve wrapping the image in a wrapper, then either moving it behind its parent or placing an absolutely positioned pseudo on top, such that another element/ pseudo on top gets the shadow.

    This means an extra element and often losing right click menu, save for the rare cases when the element on top of the img in z order gets `pointer-events: none`.

    #css #shadow #boxShadow #inset #code #coding #frontend #web #dev #webDev #webDevelopment #shadows

  15. Almost all solutions I've seen involve wrapping the image in a wrapper, then either moving it behind its parent or placing an absolutely positioned pseudo on top, such that another element/ pseudo on top gets the shadow.

    This means an extra element and often losing right click menu, save for the rare cases when the element on top of the img in z order gets `pointer-events: none`.

    #css #shadow #boxShadow #inset #code #coding #frontend #web #dev #webDev #webDevelopment #shadows

  16. #tinySVGtip How do you create an *inset* shadow on an `img` element?

    You might think inset `box-shadow`, but it doesn't work! Really, there are tons of articles & questions on StackOveflow on this very topic.

    SVG filters to the rescue for an elegant solution!

    ✨ offset & blur image
    ✨ subtract it out of original image alpha ⇒ get black inner shadow
    ✨ paint it 🍊
    ✨ place it on top of img

    #SVG #filter #inset #shadow #image #svgFilter #code #coding #frontend #webDev #webDevelopment

  17. #tinySVGtip How do you create an *inset* shadow on an `img` element?

    You might think inset `box-shadow`, but it doesn't work! Really, there are tons of articles & questions on StackOveflow on this very topic.

    SVG filters to the rescue for an elegant solution!

    ✨ offset & blur image
    ✨ subtract it out of original image alpha ⇒ get black inner shadow
    ✨ paint it 🍊
    ✨ place it on top of img

    #SVG #filter #inset #shadow #image #svgFilter #code #coding #frontend #webDev #webDevelopment

  18. #tinySVGtip How do you create an *inset* shadow on an `img` element?

    You might think inset `box-shadow`, but it doesn't work! Really, there are tons of articles & questions on StackOveflow on this very topic.

    SVG filters to the rescue for an elegant solution!

    ✨ offset & blur image
    ✨ subtract it out of original image alpha ⇒ get black inner shadow
    ✨ paint it 🍊
    ✨ place it on top of img

    #SVG #filter #inset #shadow #image #svgFilter #code #coding #frontend #webDev #webDevelopment

  19. #tinySVGtip How do you create an *inset* shadow on an `img` element?

    You might think inset `box-shadow`, but it doesn't work! Really, there are tons of articles & questions on StackOveflow on this very topic.

    SVG filters to the rescue for an elegant solution!

    ✨ offset & blur image
    ✨ subtract it out of original image alpha ⇒ get black inner shadow
    ✨ paint it 🍊
    ✨ place it on top of img

    #SVG #filter #inset #shadow #image #svgFilter #code #coding #frontend #webDev #webDevelopment

  20. #tinySVGtip How do you create an *inset* shadow on an `img` element?

    You might think inset `box-shadow`, but it doesn't work! Really, there are tons of articles & questions on StackOveflow on this very topic.

    SVG filters to the rescue for an elegant solution!

    ✨ offset & blur image
    ✨ subtract it out of original image alpha ⇒ get black inner shadow
    ✨ paint it 🍊
    ✨ place it on top of img

    #SVG #filter #inset #shadow #image #svgFilter #code #coding #frontend #webDev #webDevelopment

  21. Last day of half term is an INSET. Really? It has a 30 min break, an hour lunch and hour "quiz"... Why not just start at 8 and go home at 1. I do not underatand this management system at all. I also don't even know what #INSET stands for! Haha. #teaching #InternationalSchool @edutooters

  22. Last day of half term is an INSET. Really? It has a 30 min break, an hour lunch and hour "quiz"... Why not just start at 8 and go home at 1. I do not underatand this management system at all. I also don't even know what #INSET stands for! Haha. #teaching #InternationalSchool @edutooters

  23. Last day of half term is an INSET. Really? It has a 30 min break, an hour lunch and hour "quiz"... Why not just start at 8 and go home at 1. I do not underatand this management system at all. I also don't even know what #INSET stands for! Haha. #teaching #InternationalSchool @edutooters

  24. Last day of half term is an INSET. Really? It has a 30 min break, an hour lunch and hour "quiz"... Why not just start at 8 and go home at 1. I do not underatand this management system at all. I also don't even know what #INSET stands for! Haha. #teaching #InternationalSchool @edutooters