r/WebdevTutorials • • Dec 08 '20

Frontend Pure CSS Frosted Glass Effect

https://www.youtube.com/watch?v=CcQu3WMhWHo
42 Upvotes

3 comments sorted by

6

u/contactlite Dec 08 '20

Its 2020, use backdrop-filter on your container. Not supported on Firefox yet.

    background: rgba(0,0,0,0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);

2

u/szirith Dec 08 '20

Thanks for the protip!

1

u/backtickbot Dec 08 '20

Fixed formatting.

Hello, contactlite: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.