bouncing loader | pelotas rebotando
CSS
Publicado el 5 de Enero del 2021 por Katas (47 códigos)
1.671 visualizaciones desde el 5 de Enero del 2021
Código de CSS que muestra tres pelotas rebotando que se puede utilizar mientras se carga un contenido.


<!DOCTYPE html>
<html>
<head>
<style>
@keyframes bouncing-loader {
to {
opacity: 0.1;
transform: translate3d(0, -1rem, 0);
}
}
.bouncing-loader {
display: flex;
justify-content: center;
}
.bouncing-loader > div {
width: 1rem;
height: 1rem;
margin: 3rem 0.2rem;
background: #8385aa;
border-radius: 50%;
animation: bouncing-loader 0.6s infinite alternate;
}
.bouncing-loader > div:nth-child(2) {
animation-delay: 0.2s;
}
.bouncing-loader > div:nth-child(3) {
animation-delay: 0.4s;
}
</style>
</head>
<body>
<div class="bouncing-loader">
<div></div>
<div></div>
<div></div>
</div>
</body>
</html>
Comentarios sobre la versión: 1 (0)
No hay comentarios