Keyframes anim
by Léo Durand
HTML
<div class="circle">
<div class="point_circle"></div>
</div>
CSS
body {
background: rgb(0, 21, 50);
}
.circle {
width: 40px;
height: 40px;
background: radial-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 95, 199, 100) 100%);
border-radius: 50%;
transition: transform 2000ms, opacity 2000ms;
transform: scaleX(0.7) scaleY(0.7);
opacity: 0.6;
animation: circleAnim2 4s infinite;
animation-timing-function: ease;
position: absolute;
padding: 1px;
}
.point_circle {
width: 10px;
height: 10px;
border-radius: 50%;
margin: 15px;
background: #95CDFF;
}
@keyframes circleAnim2 {
0% {
transform: scaleX(1) scaleY(1);
opacity: 0.5;
}
50% {
transform: scaleX(0.75) scaleY(0.75);
opacity: 1;
}
100% {
transform: scaleX(1) scaleY(1);
opacity: 0.5;
}
}