<style>
#sun {
width: 300px;
height: 300px;
border-radius: 50%;
background-color: yellow;
box-shadow: 0 0 80px orange;
animation-name: light;
animation-duration: 3s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
@keyframes light {
from {
opacity: 1;
}
to {
opacity: 0.2;
}
}
</style>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24