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);
    }

ความคิดเห็น • 52

  • @marwanmano8070
    @marwanmano8070 2 ปีที่แล้ว +27

    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 )

    • @smsmsmow4109
      @smsmsmow4109 ปีที่แล้ว

      yes i wish he splite the screen

  • @sereia201
    @sereia201 3 ปีที่แล้ว +8

    thank you!!!!! i started studying a little while ago and i have a lot of difficulty with css, you saved me!

  • @sanzhar.danybayev
    @sanzhar.danybayev 2 ปีที่แล้ว +69

    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.

    • @barfeeli_baatcheet
      @barfeeli_baatcheet 2 ปีที่แล้ว +2

      Yeah it was a big trouble for making it in firefox.
      I just gave up.

    • @sanzhar.danybayev
      @sanzhar.danybayev 2 ปีที่แล้ว +1

      @@barfeeli_baatcheet it sucks. I also got rid of it.

    • @xen0076
      @xen0076 2 ปีที่แล้ว

      +1

    • @qozia1370
      @qozia1370 ปีที่แล้ว +3

      Well I guess Firefox deserves to die then!
      I support Mozilla but it should be supported its extremely beautiful.

    • @Arcane_Dragon878
      @Arcane_Dragon878 5 วันที่ผ่านมา

      Currently did this in firefox
      I suppose it got support for it across the years

  • @YashArya
    @YashArya ปีที่แล้ว +1

    thanks a lot
    short and to the point video really helped me in my project

  • @herono-4292
    @herono-4292 หลายเดือนก่อน +1

    Bro ! You put the code on description, thank you so much, f**k !

  • @taplak-guplak-gepuk
    @taplak-guplak-gepuk 2 หลายเดือนก่อน

    Short and helpfully

  • @vinitkasture5471
    @vinitkasture5471 2 ปีที่แล้ว

    you just made life easier

  • @cluelessexpert
    @cluelessexpert  3 ปีที่แล้ว +5

    you can find the CSS code in the description & *important* as of right now Firefox doesn't support this

  • @webdevratnesh
    @webdevratnesh ปีที่แล้ว

    Thanks! Buddy
    NIce help

  • @WowNemy
    @WowNemy ปีที่แล้ว

    Thank you so much!

  • @Leo-uh4jg
    @Leo-uh4jg 2 ปีที่แล้ว

    Thanks you really help )

  • @sparkscomputerprogramming
    @sparkscomputerprogramming ปีที่แล้ว +1

    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

  • @danielbeeber5587
    @danielbeeber5587 4 หลายเดือนก่อน

    Thanks

  • @ishanmadushanka3709
    @ishanmadushanka3709 2 ปีที่แล้ว

    thank you bro

  • @nelsonantonio5870
    @nelsonantonio5870 2 ปีที่แล้ว

    Thank you Sir.

  • @Viezieg
    @Viezieg ปีที่แล้ว +1

    thx, but how to do it so that the text on the card wont blur ?

    • @Mreti_Zanave
      @Mreti_Zanave 6 หลายเดือนก่อน

      Maybe with z-index 0 for the box and 1 for the text

  • @emilelcl7565
    @emilelcl7565 2 หลายเดือนก่อน

    Merci frère ! 😂

  • @casesensitive9744
    @casesensitive9744 10 หลายเดือนก่อน +1

    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;

  • @lexgim
    @lexgim 4 หลายเดือนก่อน

    love u

  • @isaacdev-nl6dm
    @isaacdev-nl6dm ปีที่แล้ว

  • @devilsingh6052
    @devilsingh6052 ปีที่แล้ว

    It doesn't work in my pc:-
    backdrop-filter:blue(10px);
    -webkit-backdrop-filter:blue(10px);
    I don't know why

    • @ajaybains3843
      @ajaybains3843 ปีที่แล้ว +1

      its blur(10px) not blue(10px)

  • @mirza_rohan_ahamed
    @mirza_rohan_ahamed ปีที่แล้ว

    ❤❤❤

  • @codewithsehran
    @codewithsehran 4 หลายเดือนก่อน

    why it's too easy

  • @yankoajuran7424
    @yankoajuran7424 2 ปีที่แล้ว

    frr t français ou ?? XD

  • @kevin_lindberg
    @kevin_lindberg 3 ปีที่แล้ว

    Didt work.

    • @cluelessexpert
      @cluelessexpert  3 ปีที่แล้ว

      which browser are you using?

    • @cameleonarabic8124
      @cameleonarabic8124 2 ปีที่แล้ว

      set the height and width in .glass to like 400px

  • @XTANCE
    @XTANCE 2 ปีที่แล้ว

    It doesn't work in the only one actual browser out there, which is Firefox.
    Bruh.

  • @jhonatanreivin
    @jhonatanreivin ปีที่แล้ว

    wallpaper??

    • @cluelessexpert
      @cluelessexpert  ปีที่แล้ว

      I think it’s the 2020 iPad Air wallpaper

  • @nasteemusic
    @nasteemusic 2 ปีที่แล้ว +1

    Bro let me tell you : thanks a lot

  • @ninjacodertech
    @ninjacodertech 2 ปีที่แล้ว +1

    woah thats so much easier than i though

  • @kanikasharma2164
    @kanikasharma2164 ปีที่แล้ว +1

    Thanks for helping me

  • @FilipCodes
    @FilipCodes 2 ปีที่แล้ว

    Nice video man. Interested in a collab?

  • @ASMRWEBCODING
    @ASMRWEBCODING ปีที่แล้ว

    nice try...👍

  • @sublime4967
    @sublime4967 ปีที่แล้ว

    thanks, really nice man. Liked

  • @isaacola7596
    @isaacola7596 11 หลายเดือนก่อน

    nice and simple!

  • @adriandev6516
    @adriandev6516 2 ปีที่แล้ว

    Woooo 🤩

  • @younessbenaguida9895
    @younessbenaguida9895 7 หลายเดือนก่อน

    Lah y3tk se7a ❤