Skip to content

Commit ce870ed

Browse files
committed
Added gradient background animation
1 parent 99abbaf commit ce870ed

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en" dir="ltr">
3+
<head>
4+
<meta charset="utf-8">
5+
<title></title>
6+
<link rel="stylesheet" href="styles.css">
7+
</head>
8+
<body>
9+
<div class="d-flex flex-column justify-content-center w-100 h-100">
10+
</div>
11+
</body>
12+
</html>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
body {
2+
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
3+
background-size: 400% 400%;
4+
animation: gradient 15s ease infinite;
5+
height: 100vh;
6+
}
7+
8+
@keyframes gradient {
9+
0% {
10+
background-position: 0% 50%;
11+
}
12+
50% {
13+
background-position: 100% 50%;
14+
}
15+
100% {
16+
background-position: 0% 50%;
17+
}
18+
}

0 commit comments

Comments
 (0)