Skip to content

Commit

Permalink
feat: adding blur effect
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelitodev committed May 9, 2024
0 parents commit 418ebb0
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
Binary file added horikita.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Glass Effect</title>
<link rel="stylesheet" href="./styles.css" />
</head>
<body>
<div class="container glass"></div>
</body>
</html>
34 changes: 34 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
* {
margin: 0;
padding: 0;
}

body {
height: 100vh;
background-image: url("./horikita.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;

display: flex;
align-items: center;
justify-content: center;
}

.container {
width: 100%;
height: 100%;
}

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

0 comments on commit 418ebb0

Please sign in to comment.