Video wird geladen...
Video konnte nicht geladen werden
Progressive blurs in CSS using pow()/sin() 🤙 1. Create overlay layers 2. Mask and blur based on index using sin()/pow() .layer { backdrop-filter: blur(calc( sin(((var(--layers) - var(--i)) / var(--layers)) * 90deg) * 30px )); } Made a sandbox 👇🤓
75,476 Aufrufe • vor 2 Jahren •via X (Twitter)
11 Kommentare

How badly does it affect performance?

Definitely one to test out a bit before you'd ship it. But that's kinda why I put this together. For example, Safari is gonna prefer using direct blur masked elements overlaid 🤙

UIX Network: A Beacon for Black-Owned Businesses and Content Creators #Business

I'd say we need a native progressive blur in CSS

As a developer, you have to know that blur uses a lot of CPU. As a designer, I once added so much blur that for 3 weeks the developers couldn't understand why the site was almost death)

Used with caution. But, this is one I get requests for a lot

How is everyone testing performance? What is your go, no-go threshold?

Progressive header/bottom nav is all I need also card bg on hover

You are so genius!

Looks sick! You are really on a roll lately 🤘✨

I recently saw something like this but it was at the top of the site as you scrolled up it blurred (less blur than this) and thought it was a nice little touch.
