Skip to content

Commit

Permalink
Added Glassmorphism Background-2 (#1497)
Browse files Browse the repository at this point in the history
  • Loading branch information
avnisinngh authored Mar 1, 2025
1 parent 4998d3f commit 5c545d2
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Components/Backgrounds/Glassmorphism-Background-2/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">
<link rel="stylesheet" href="style.css">
<title>Glassmorphism Background-2</title>
</head>
<body>
<div class="glass">Aesthetic ✨</div>
</body>
</html>
40 changes: 40 additions & 0 deletions Components/Backgrounds/Glassmorphism-Background-2/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
body {
margin: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-size: 400% 400%;
animation: gradientShift 10s ease infinite;
background: linear-gradient(135deg, #D8BFD8, #E6E6FA, #D8BFD8);
}

@keyframes gradientShift {
0% {
background-position: 0% 50%;
}

50% {
background-position: 100% 50%;
}

100% {
background-position: 0% 50%;
}
}

.glass {
width: 300px;
height: 200px;
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(10px);
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: bold;
color: white;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
}
5 changes: 5 additions & 0 deletions assets/json_files/backgrounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@
"previewLink": "../../Components/Backgrounds/Glassmorphism-Background/index.html",
"sourceLink": "https://github.com/Rakesh9100/Beautiify/tree/main/Components/Backgrounds/Glassmorphism-Background"
},
{
"title": "Glassmorphism Background-2",
"previewLink": "../../Components/Backgrounds/Glassmorphism-Background-2/index.html",
"sourceLink": "https://github.com/Rakesh9100/Beautiify/tree/main/Components/Backgrounds/Glassmorphism-Background-2"
},
{
"title": "Gliding Diagonals Background",
"previewLink": "../../Components/Backgrounds/Gliding-Diagonals-Background/index.html",
Expand Down

0 comments on commit 5c545d2

Please sign in to comment.