-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSUNSET.html
83 lines (83 loc) · 1.35 KB
/
SUNSET.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<html>
<head>
<style>
body{
background:skyblue;
animation-name:background;
animation-duration:6s;
animation-delay:0.3s;
animation-iteration-count:infinite;
}
.sun{
height:150px;
width:150px;
border-radius:100px;
background:orange;
box-shadow:2px 2px 50px 10px orange;
border:1px solid orange;
position:absolute;
right:400px;
top:-150px;
animation-name:sunset;
animation-duration:6s;
animation-iteration-count:infinite;
}
.moon{
height:150px;
width:150px;
border-radius:100px;
background:white;
box-shadow:2px 2px 50px 10px white;
border:1px solid white;
position:absolute;
bottom:20px;
left:200px;
animation-name:moon;
animation-duration:6s;
animation-delay:0.2s;
animation-iteration-count:infinite;
}
@keyframes background{
0%{
background:rgba(49,141,199,0.8);
}
70%{
background:linear-gradient(to top,rgba(49,141,199,0.8),rgba(247,167,27,0.5));
}
100%{
background:rgba(0,0,0,0.9);
}
}
@keyframes sunset{
0%{
top:-150px;
background:linear-gradient(90deg,orange,gold);
}
100%{
top:570px;
background:linear-gradient(45deg,orange,gold);
opacity:0.2;
}
}
@keyframes moon{
0%{
bottom:0px;
opacity:0;
}
50%{
opacity:0.2;
bottom:590px;
background:linear-gradient(rgba(0,0,0,0.3),white);
}
100%{
top:10px;
opacity:1;
}
}
</style>
</head>
<body>
<div class="sun"></div>
<div class="moon"></div>
</body>
</html>