Settings

Theme

Mastering CSS blend modes

kodingkitty.com

111 points by KodingKitty 3 years ago · 20 comments

Reader

airstrike 3 years ago

See also https://garden.bradwoods.io/notes/css/blend-modes

holoduke 3 years ago

We recently migrated all our native apps to webapps. Yes it's possible these days with same user experience. It's a blessing. Designing apps with css is just so nice. There isn't a single native solution which come even slightly close. Css is super nice these days.

  • schrodingerscow 3 years ago

    React native let’s you use flex box and has a lot of feature parity to css

    • paradaux 3 years ago

      React Native is essentially just writing web apps, once RN has css grid I will be happy enough with everything it has.

      There's something to be said for writing web apps in RN purely for the option of porting to iOS, Android and even MacOS/Windows now.

      • schrodingerscow 3 years ago

        Fair enough. I hardly ever use grid cause I usually find flex handles 99% of my cases. But grid can be nice in certain instances. Haven’t tried RN for anything other than ios and android but am curious about the other platforms. And I guess the rest of the argument is just the age old debate of web vs native app. I think for some apps you’d be hard pressed to convince users to open a browser every time and type in a url, but certainly for other apps it’s fine. I won’t rehash that whole debate though :)

        • holoduke 3 years ago

          A webapp can live within a native app. The native app just acts as a holder and maybe has some functionality like social logins, ads, push notifications etc.

moffkalast 3 years ago

Something to note though, these are typically extremely slow to render on mobile (at least in my experience) and can mean the difference between a functional web app and a laggy mess if you're redrawing often.

  • photonerd 3 years ago

    That’s usually the fault of funky JS or bloated bundles etc, rather than the CSS portion.

    Plus it’s completely avoidable l, just many teams do not care, unfortunately

    • moffkalast 3 years ago

      Well I assume the reasoning is that hardly anyone uses these blend modes, so why spend time optimizing it when there are more common things that could use more of a speedup.

Waterluvian 3 years ago

It’s incredible just how much there is in CSS. And so much of it is very fast in comparison to other imperative ways to getting the same effects.

cubefox 3 years ago

Is there a blend mode for subtractive color mixing, to get the effect of layering transparent plastic sheets on top of each other?

Inviz 3 years ago

How to use blend modes to create text that is always visible over the picture, dark or light? e.g. negates the background color or something.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection