r/css • u/frontru • May 06 '21
Glassmorphism Cards using HTML and CSS
https://youtu.be/aSfCMWNAjl436
u/rapscallops May 06 '21
tldr: backdrop-filter: blur(10px)
3
1
u/vannrith May 07 '21
It still doesn’t work on FF by default right?
1
u/Inevitable-Weekend-4 May 10 '21
It does.
Go to config (about:config).
set gfx.webrender.all to true.
set layout.css.backdrop-filter.enabled to true.
Its currently bugging out in firefox 71 though.
1
u/1280px Aug 15 '21
Also apply some white box-shadow, it makes cards look a LOT glossier (though it might look a bit skeuomorph-ish): https://jsfiddle.net/x854fkjc/86/
3
May 06 '21
Too bad the backdrop filter blur isn’t compatible with all major browsers.
1
u/Inevitable-Weekend-4 May 10 '21
I wouldn't consider internet explorer a major browser. Firefox for Android is really the only one thats lacking.
1
May 10 '21
I believe it also doesn’t work on safari.
1
u/Inevitable-Weekend-4 May 10 '21
You need the vendor prefix. Works fine for Safari macOS and Safari iOS using the vendor prefix for apple, which is "-webkit-".
-webkit-backdrop-filter: blur(30px) saturate(210%);
1
1
u/Inevitable-Weekend-4 May 10 '21
-webkit-backdrop-filter: blur(30px) saturate(210%); (with no background color)
works a treat for safari!
15
u/abeuscher May 06 '21
Anyone else feel like the onslaught of video only tutorials is rendering this sub an upvote farm with little to no use? Or is that just me?