css ladowanie strony
Data utworzenia: 2025-02-17 10:53:17
body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #222;
}
.loader {
display: flex;
justify-content: space-between;
width: 80px;
}
.loader > div {
width: 10px;
height: 30px;
background-color: #fff;
box-shadow: 0 0 15px #fff;
animation-duration: 1s;
animation-iteration-count: infinite;
}
.loader > div:nth-of-type(1) {
animation-name: scaling1;
}
.loader > div:nth-of-type(2) {
animation-name: scaling2;
}
.loader > div:nth-of-type(3) {
animation-name: scaling3;
}
@keyframes scaling1 {
0% {
transform: scale(1);
}
20% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
@keyframes scaling2 {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
@keyframes scaling3 {
0% {
transform: scale(1);
}
80% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
Powrót