Preloader для сайта — стиль 78

Подробное описание и демонстрацией работы эффекта загрузки под номером №78 для библиотеки Bootstrap. Html и CSS код для реализации preloader’a сайта как на изображении.

Демонстрация эффекта загрузки страницы — стиль 78

html разметка для реализации эффекта загрузки страницы

<div class="demo">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="loader">
<div class="loader-inner">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
</div>
</div>
</div>

css разметка для реализации эффекта загрузки страницы

.demo{
background: #6d6d6d;
}
.loader{
width: 180px;
height: 180px;
margin: 50px auto;
position: relative;
}
.loader .loader-inner{
width: 80px;
height: 80px;
position: absolute;
left: 50%;
margin-top: 80px;
transform: translate(-50%, -50%) rotate(45deg) translate3d(0, 0, 0);
animation: loading-1 1.2s infinite ease-in-out;
}
.loader span{
display: block;
width: 40px;
height: 40px;
position: absolute;
background: #a6ae28;
animation: loading-2 1.2s infinite ease-in-out both;
}
.loader span:nth-child(1){
top: 0;
left: 0;
}
.loader span:nth-child(2){
top: 0;
right: 0;
animation: loading-3 1.2s infinite ease-in-out both;
}
.loader span:nth-child(3){
bottom: 0;
left: 0;
animation: loading-3 1.2s infinite ease-in-out both;
}
.loader span:nth-child(4){
bottom: 0;
right: 0;
}
@-webkit-keyframes loading-1{
0%, 10%, 100%{
width: 80px;
height: 80px;
}
65%{
width: 150px;
height: 150px;
}
}
@keyframes loading-1{
0%, 10%, 100%{
width: 80px;
height: 80px;
}
65%{
width: 150px;
height: 150px;
}
}
@-webkit-keyframes loading-2{
0%, 30%{
transform: rotate(0);
}
55%{
background-color: #dee47a;
}
100%{
transform: rotate(90deg);
}
}
@keyframes loading-2{
0%, 30%{
transform: rotate(0);
}
55%{
background-color: #dee47a;
}
100%{
transform: rotate(90deg);
}
}
@-webkit-keyframes loading-3{
0%, 20%{
transform: rotate(0);
}
55%{
background-color: #dee47a;
}
100%{
transform: rotate(-90deg);
}
}
@keyframes loading-3{
0%, 20%{
transform: rotate(0);
}
55%{
background-color: #dee47a;
}
100%{
transform: rotate(-90deg);
}
}



Теги:
0

Оставить своё мнение

Ваш e-mail не будет опубликован. Обязательные поля помечены *