Code:
<! DOCTYPE html>
<title> Sunset </title>
<meta charset= "Utf-8" >
<style type= "Text/css" >
. bk{height:800px;border:1px solid black; POSITION:RELATIVE;OVERFLOW:HIDDEN;ANIMATION:BJ 10s linear Infinite}
. sun{height:300px;width:300px;border-radius:100%;background-color:red; position:absolute; Top:800px;animation: Light 10s linear Infinite;}
@keyframes light{
0%{box-shadow:0px 0px 100px white;transform:translate (0px,0px)}
20%{box-shadow:0px 0px 200px white;transform:translate (200px,-200px)}
40%{box-shadow:0px 0px 200px yellow;transform:translate (400px,-400px)}
50%{box-shadow:0px 0px 200px yellow;transform:translate (500px,-500px)}
60%{box-shadow:0px 0px 100px yellow;transform:translate (600px,-400px)}
80%{box-shadow:0px 0px 100px yellow;transform:translate (800px,-200px)}
100%{box-shadow:0px 0px 200px white;transform:translate (1000px,0px)}
}
@keyframes bj{
0%{background-color:black;}
20%{background-color: #C4C2C7;}
50%{background-color:white;}
80%{background-color: #C4C2C7;}
100%{background-color:black;}
}
</style>
<body>
<div class= "BK" >
<div class= "Sun" ></div>
</div>
</body>
CSS transition simple Application-sunset