home.social

#blendmode — Public Fediverse posts

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

fetched live
  1. If you're a Cheetah+ supporter on Ko-fi or Patreon, then first of all thank you 🙏 and second, I've just published something detailing how to easily get halftone-masked images with blend modes and filters.

    ❇️ ko-fi.com/post/Halftone-maskin

    ❇️ patreon.com/posts/halftone-mas

    #CSS #filter #SVG #blendMode #cssFilter #svgFilter #halftone #coding #frontend #web #dev #webDev #webDevelopment #code #cssGradient

  2. Single element, minimal #CSS (20 declarations and only that many to even out browser inconsistencies), minimal #JS (just updates a custom property value), comparison slider (original image vs. desaturated one) on @codepen codepen.io/thebabydino/pen/MWM

    #code #coding #frontend #blending
    #web #dev #webDev #webDevelopment
    #blendMode

  3. Because this @codepen demo just got hearted and I've never shared it here before codepen.io/thebabydino/pen/Vwm

    The concept behind the XOR is something I explained in this
    @csstricks article css-tricks.com/taming-blend-mo

    (should probably redo it with view transitions)

    #CSS #blending #blendMode #coding #web #dev #webDev #webDevelopment #code #frontend

  4. And here are cards with gradual left to right inversion: from no inversion at all on the left, to full inversion on the right. Again, minimal code, single div, no pseudos necessary, 2 #CSS declarations.

    Live demos on @codepen

    ✳️ codepen.io/thebabydino/pen/mdO

    ✳️ codepen.io/thebabydino/pen/dyO

    #blending #blendMode #cssGradient #code #web #webDev #webDevelopment #dev #coding #frontend

  5. Here's another set of cards with varying patterns, all created with the exact same 4 blended CSS gradients, it's just the stops list `--c` that changes for each card.

    So basically, it's again just one `background` + one `background-blend-mode` property.

    Live demo on @codepen
    codepen.io/thebabydino/pen/vYy

    #CSS #blending #blendMode #pattern #cssGradient #coding #frontend #code #web #dev #webDev #webDevelopment #cssPattern #cssPatterns #patterns

  6. And here's a cards demo with a cool, yet very simple trick: these left to right gradients are vibrant at the top, but then progressively get more and more desaturated going down, until fully grey.

    Live on @codepen codepen.io/thebabydino/pen/xxz - only 2 CSS declarations necessary!

    #CSS #tinyCSStip #blending #blendMode #cssGradient #code #coding #frontend #web #dev #webDev #webDevelopment

  7. By the way, the code is heavily commented codepen.io/thebabydino/pen/MYW

    So you can see how it works without JS, without wrapping individual elements into spans, just letting it wrap naturally. And without covers that wouldn't allow for an image backdrop behind the text.

    #CSS #SVG #filter #svgFilter #blendMode #blending #code #coding #frontend #web #dev #webDevelopment #webDev

  8. If we have an inline `span` inside a `p` & we give it a semi-transparent `background` + a `padding`, we get an alpha increase where backgrounds of adjacent lines overlap.

    How would you solve this problem without text duplication, without stacking 2 identical `p` elements, one for background (opaque background + transparent text + opacity) and one for text (transparent background)?

    #CSS #SVG #filter #svgFilter #code #web #dev #webDev #webDevelopment #coding #frontend #blendMode #blending

  9. Hi, mastodon 🦣 I have a new article out!

    A Deep Dive into the Inline Background Overlap Problem: frontendmasters.com/blog/overl

    How do you get the below result (semi-transparent background on inline span) with large padding & no overlap?

    Answer in article, but think a bit about it first. 😼

    #CSS #SVG #filter #svgFilter #code #web #dev #webDev #webDevelopment #coding #frontend #blendMode #blending

  10. Pure #CSS 1 div halftone-masked background card codepen.io/thebabydino/pen/GRN on @codepen.

    Made this 4 years ago - can you guess how before checking the code?

    Doesn't work in Firefox due to an old bug 🪲 bugzilla.mozilla.org/show_bug. not even related to the halftone mask, but caused by the duo text on the right.

    #filter #code #coding #frontend #cssfFilter #web #dev #webDev #webDevelopment #blendMode #blending

  11. By the way, this is my second article for Frontend Masters.

    My first was a few months ago and it was about creating dynamic split effects (image, text, page) without any content duplication whatsoever frontendmasters.com/blog/split

    #CSS #SVG #filter #blending #code #web #webDev #frontend #coding #dev #webDevelopment #blendMode #svgFilter #cssGradient

  12. I have a new article out: 🎇 Pure CSS Halftone Effect in Only 3 Declarations 🎇 frontendmasters.com/blog/pure-

    This goes through the how behind the 3 declarations and then explores a lot of variations that help us produce 🌟 cooler, more interesting 🌟 patterns.

    #CSS #pattern #gradient #halftone #cssPattern #cssGradient #filter #blending #blendMode #code #coding #frontend #web #dev #webDev #webDevelopment

  13. A little @codepen demo I made some years back: #duotone a B&W image using pure #CSS #blending (and very little code in total) codepen.io/thebabydino/pen/MWb

    With a comparison slider between the two blend modes that may be used for the effect and a picker for duotone palette base.

    Created for my Taming Blend Modes #CSSTricks article css-tricks.com/taming-blend-mo

    #blendMode #code #coding #frontend #web #dev #webDev #webDevelpment #interactive #CodePen #JS #JavaScript #slider #comparison #comparisonSlider

  14. Another request, mastodon 🦣

    If you can test in Safari, can you let me know what the second (moving) line looks like for you?

    codepen.io/thebabydino/pen/Jjg

    Cyan like expected/ Chrome/ Firefox? Lime like what I'm seeing with Epiphany?

    Boosts appreciated if you cannot test. Thanks! 🙏

    #CSS #blending #blendMode #cssTransforms #code #coding #web #dev #frontend #webDevelopment #webDev

  15. If you can test in actual Safari, could you let me know how this looks for you?

    codepen.io/thebabydino/pen/Yzo

    Like in the first screenshot or like in the second?

    Thanks! 🙏

    #CSS #frontend #web #dev #code #coding #webDev #webDevelopment #blending #blendMode

  16. Saw some familiar demos among those trending on @codepen 🙃

    ✨blended layers

    ✨slice & offset

    ✨here is real magic 🪄

    ✨dizzy 3D

    ✨no matrix gooey effect

    ✨realistic grainy shadows

    ✨slice

    ✨split text effect

    #SVG #CSS #filter #svgFilter #blendMode #blending #code #coding #frontend #web #dev #webDev

  17. If you like split effects, I've collected a bunch of them with no content duplication in this post frontendmasters.com/blog/split

    Note that the recordings were made on an old laptop and they suffer from compression. The live demos look better.

    Enjoy!

    #SVG #CSS #filter #svgFilter #cssGradient #code #coding #blending #blendMode #frontend #webDev #web #dev #webDevelopment

  18. We can also go the other way with the exact same minimal structure: from black and white photography to a duotoned image - see it on @codepen: codepen.io/thebabydino/pen/jOj

    ✨ single element, no ::before or ::after
    ✨ under 20 #CSS declarations
    #JS only needed to update 1 CSS variable on drag

    #blending #blendMode #duotone #graphicEffect #code #coding #frontend #web #webDev #webDevelopment #dev

  19. No text duplication, no JS, no images save for CSS gradients, no long lists of values for anything (like text-shadow).

    Just plain text + CSS gradients + blending + the magic of #SVG filters for extrusion + texture 🪄✨

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

    #filter #svgFilter #cssGradient #blending #blendMode #noise #extrusion #code #textEffect #coding #frontend #web #dev #webDev #webDevelopment

  20. There's also the option of duotone images... and by the way, the palette can be animated (even if leaving the palette animation to randomness makes the result look more like monochrome at times).

    Anyway, here's the demo on @codepen codepen.io/thebabydino/pen/Rwd

    #CodePenChallenge #CodePen #svg #filter #svgFilter #blendMode #blending #css #code #coding #frontend #web #webDev #dev #monochrome #webDevelopment

  21. Monochrome images! Seen various approaches to this over the years, but was never super happy with results, so down the rabbithole I went.

    My 3 options on @codepen codepen.io/thebabydino/pen/qBG require a single img (no wrapper needed for effect) + a simple #SVG #filter.

    #CodePenChallenge #CodePen #svgFilter #blendMode #blending #css #code #coding #frontend #web #webDev #dev #monochrome #webDevelopment