Skip to content

Discover the charm of the slightly blurred glass effect using HTML and CSS! 😎✨

Notifications You must be signed in to change notification settings

miguelitodev/glass-effect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Glassy Blur Effect Project ✨

Welcome to the Glassy Blur Effect project! This project explores creating a sleek and stylish glassy blur effect using HTML and CSS. 🌟

Project Overview πŸš€

The main goal of this project is to demonstrate how to achieve a glassy blur effect using simple HTML and CSS techniques. The project provides a minimalist example of how to implement this effect, making it easy for developers to integrate it into their own projects. πŸ’»

Code Explanation 🎨

In the project, the glassy blur effect is achieved using the following CSS code snippet:

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

Explanation of the code:

  • background: Applies a linear gradient background to create a translucent effect. The gradient starts from 135 degrees and consists of two colors: rgba(255, 255, 255, 0.1) (slightly opaque white) and rgba(255, 255, 255, 0) (fully transparent white). 🌈
  • backdrop-filter: Applies a blur filter to the element and its contents. This creates the blurred effect that simulates glass. πŸ”
  • -webkit-backdrop-filter: Similar to backdrop-filter, but specifically for WebKit browsers such as Chrome and Safari. πŸ–₯️
  • border-radius: Rounds the corners of the element to give it a smoother appearance. 🎈
  • border: Adds a thin solid border around the element with a slight opacity to enhance the glassy effect. 🌊
  • box-shadow: Applies a shadow effect to the element to create depth and realism. ☁️

Feel free to explore and customize the code to fit your project's needs! πŸŽ‰

About

Discover the charm of the slightly blurred glass effect using HTML and CSS! 😎✨

Topics

Resources

Stars

Watchers

Forks