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

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

  4. #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

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

  6. Do you need a keynote speaker for your event or #INSET day? We provide high-quality, academic talks on a range of issues related to #education #diversity and #curriculum. See our website for a full list of services and testimonials. diversehistory.co.uk #EduMastadon #UKEdChat :earth_americas: :progresspride: