<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
background: #0ea9b1;
}
@keyframes bl {
0% {
bottom: 0;
}
50% {
bottom: -50px;
}
100% {
bottom: 0;
}
}
@keyframes sun {
0% {
transform: translate(-50%,-50%) scale(1);
box-shadow: 0px 0px 5px rgba(255,255,255,0.7);
}
50% {
transform: translate(-50%,-50%) scale(1.1);
box-shadow: 0px 0px 30px rgba(255,255,255,0.7);
}
100% {
transform: translate(-50%,-50%) scale(1);
box-shadow: 0px 0px 5px rgba(255,255,255,0.7);
}
}
.sun {
width: 100px;
height: 100px;
border-radius: 50%;
margin: 100px;
position: relative;
}
.sun::before,.sun::after{
content: '';
border-radius: 50%;
display: block;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.sun::before {
width: 50px;
height: 50px;
background: rgba(255,255,255,0.8);
animation: sun 2s infinite;
}
.sun::after {
width: 80px;
height: 80px;
background: rgba(255,255,255,0.6);
animation: sun 3s infinite;
}
img {
width: 100%;
position: absolute;
left: 0;
bottom: 0;
}
/*img:first-of-type {*/
/*animation: bl 2s linear infinite;*/
/*}*/
img:last-of-type {
animation: bl 2s linear 0.5s infinite;
}
</style>
</head>
<body>
<div class="sun"></div>
<img src="images/1.png" alt="">
<img src="images/2.png" alt="">
</body>
</html>