VOOZH about

URL: https://www.geeksforgeeks.org/css/how-to-make-a-glass-blur-effect-overlay-using-html-and-css/

โ‡ฑ How to Make a Glass/Blur Effect Overlay using HTML and CSS? - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

How to Make a Glass/Blur Effect Overlay using HTML and CSS?

Last Updated : 5 Aug, 2025

To give a background blur effect on an overlay, the CSS backdrop-filter: blur() property is used with ::before pseudo-element. The backdrop-filter: blur() property gives the blur effect on the box or any element where it is desired and โ€œbeforeโ€ is used to add the blurred background without applying any extra markup.

HTML Code: In this section, we will use HTML code to design the basic structure of the web page.

CSS Code: In this section, we will use some CSS properties to make a glass/blur effect overlay using HTML and CSS.

Combined Code: In this section, we will combine the above two sections of code (HTML and CSS code) to make a glass/blur effect overlay.

Output: 

๐Ÿ‘ Image

HTML is the foundation of web pages and is used for webpage development by structuring websites and web apps. You can learn HTML from the ground up by following this HTML Tutorial and HTML Examples.

CSS is the foundation of web pages and is used for webpage development by styling websites and web apps. You can learn CSS from the ground up by following this CSS Tutorial and CSS Examples.

Comment
Article Tags:
Article Tags: