Loading video...
Video Failed to Load
CSS Trick 🫠 You can create gooey effects with filter using CSS or SVG if you want color 🎨 .blobs { filter: blur(20px) contrast(30); } .blobs { filter: url(#goo); } The trick is to blur the thing, then cut the blur off with contrast. You can make some cool... show more
186,673 views • 2 years ago •via X (Twitter)
11 Comments

Here's that @CodePen link! 🚀 Really worth messing with the values in DevTools and seeing what a difference it makes and the kind of effects you can create 🤓

Neat effect, made me wonder if could be used for a CSS Lava lamp On off chance searched Codepen and guess who was the top hit

Haha 😅 That one could probably do with a revisit at some point. Funny because these trends go round in cycles. Have a bunch of "Gooey" filter demos from the first time I saw SVG filters which would be wayyyy back now 🥲

007? :d

wow!!!!

Maybe with some kind of filter you even can create other colors. Not sure yet why the second bubble isnt showing.

Exactly that! 🤙 People tend to reach for the SVG filter for ease of use. Like that use of sepia and then the hue-rotate to finish. If you reduce the blur on the level up, it should come back 🤞

It's not limited to black and white in CSS. It works with other colors too, which also makes it easier to generate other colors by applying additional filters like sepia() and hue-rotate().

Not "limited" but it is in the sense that you can't just use "background-color" which is what most people would want to use to change color.

This brings back some memories 🥹

Right?! Love that demo by the way, when they merge it reminds me of Dr. Mario 😅
