forked from you-dont-need/You-Dont-Need-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGradient-Animation.html
39 lines (37 loc) · 984 Bytes
/
Gradient-Animation.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gradient Animation</title>
<style>
body {
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.gradient {
width: 200px;
height: 200px;
border-radius: 50%;
background: linear-gradient(45deg, #ff6347, #ff69b4, #1e90ff, #00ff7f);
background-size: 400% 400%;
animation: gradient-animation 4s ease infinite;
}
@keyframes gradient-animation {
0% {
background-position: 0% 50%;
}
100% {
background-position: 100% 50%;
}
}
</style>
</head>
<body>
<div class="gradient"></div>
</body>
</html>