GLASS Effect With CSS
ฝัง
- เผยแพร่เมื่อ 28 ก.ย. 2024
- A Tutorial on how to add a glass effect to a div with CSS
With this you can create your own variations, just change the CSS properties the way you like it
📋 CODE ⬇️
.glass{
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 20px;
border:1px solid rgba(255, 255, 255, 0.18);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
Some hints can make video better :
1-split the screen to show people how every element effect not just as copy and paste the code
2-with voice explan what you doing and how every elements work even of its easy but there is beginner still need it
3- put the final result at the first of the video then explain how did it (it make people more interesting to see the good part that the final result then see the code part )
yes i wish he splite the screen
thank you!!!!! i started studying a little while ago and i have a lot of difficulty with css, you saved me!
Hint: don't use too much elements with blur effect, for low-budget devices it will cause freezing up. Keep in mind that it's completely not supported by Firefox.
Yeah it was a big trouble for making it in firefox.
I just gave up.
@@barfeeli_baatcheet it sucks. I also got rid of it.
+1
Well I guess Firefox deserves to die then!
I support Mozilla but it should be supported its extremely beautiful.
Currently did this in firefox
I suppose it got support for it across the years
thanks a lot
short and to the point video really helped me in my project
Bro ! You put the code on description, thank you so much, f**k !
Short and helpfully
you just made life easier
you can find the CSS code in the description & *important* as of right now Firefox doesn't support this
uninstalled firefox just now
:)
Thanks! Buddy
NIce help
Thank you so much!
Thanks you really help )
Cool but a good teacher explains to his students what each lime of code does, i copied but dont know why we used gradient or webkit
Thanks
thank you bro
Thank you Sir.
thx, but how to do it so that the text on the card wont blur ?
Maybe with z-index 0 for the box and 1 for the text
Merci frère ! 😂
why do people be making lots of video on backdrop filter when it is the simplest thing to use. We want video on how to blur background with filter: blur;
love u
It doesn't work in my pc:-
backdrop-filter:blue(10px);
-webkit-backdrop-filter:blue(10px);
I don't know why
its blur(10px) not blue(10px)
❤❤❤
why it's too easy
frr t français ou ?? XD
Didt work.
which browser are you using?
set the height and width in .glass to like 400px
It doesn't work in the only one actual browser out there, which is Firefox.
Bruh.
wallpaper??
I think it’s the 2020 iPad Air wallpaper
Bro let me tell you : thanks a lot
woah thats so much easier than i though
Thanks for helping me
Nice video man. Interested in a collab?
nice try...👍
thanks, really nice man. Liked
nice and simple!
Woooo 🤩
Lah y3tk se7a ❤
khdam lik page config.php
@@MohammedMharzi kifach