-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Glassmorphism Background-2 (#1497)
- Loading branch information
1 parent
4998d3f
commit 5c545d2
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
Components/Backgrounds/Glassmorphism-Background-2/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
40
Components/Backgrounds/Glassmorphism-Background-2/style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters