html css page loading animation #shorts

preview_player
Показать описание
#sayyednasarali
#webdesign #webdevelopment #frontend #css #css3 #html #html5 #shortvideo #short #shortsvideo #shortsyoutube
Рекомендации по теме
Комментарии
Автор

Wonderful. Where could you find tre source code?

maurizio
Автор

html, body{
justify-content: center;
display: flex;
align-items: center;
height: 100%;
background-color: black;
}

.loader{
animation: rotate 1s infinite;
height: 50px;
width: 50px;
}
.loader:before, .loader:after{
border-radius: 50%;
content: '';
display: block;
height: 20px;
width: 20px;
}
.loader::before{
animation: ball1 1s infinite;
background-color: #cb2025;
box-shadow: 30px 0 0 #f8b334;
}
.loader:after{
animation: ball2 1s infinite;
background-color: #00a096;
box-shadow: 30px 0 0 #97bf0d;
}
@keyframes rotate{
0% {
-webkit-transform: rotate(0deg) scale(0.8);
-moz-transform: rotate(0deg) scale(0.8);
}
50%{
-webkit-transform: rotate(360deg) scale(1.2);
-moz-transform:rotate(360deg) scale(1.2) ;
}
100%{
scale(720deg) ;
-moz-transform:rotate(720deg) scale(720deg) ;
}
}
@keyframes ball1{
0%{
box-shadow: 30px 0 0 #f8b334;
}
50%{
box-shadow: 0 0 0 #f8b334;
margin-bottom: 0;
-webkit-transform: translate(15px, 15px);
-moz-transform: translate(15px, 15px);
}
100%{
box-shadow: 30px 0 0 #f8b334;
margin-bottom: 10px;
}
}
@keyframes ball2{
0%{
box-shadow: 30px 0 0 #97bfed;

}
50%{
box-shadow: 0 0 #97bf0d;
margin-top: -20px;
-webkit-transform:translate(15px, 15px) ;
-moz-transform: translate(15px, 15px);
}
100%{
box-shadow:30px 0 0 #97bf0d ;
margin-top: 0;
}
}

raphaeleliass