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

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

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

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

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

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

.demo{ background: #f9a03f; }
.loader{
width: 170px;
height: 140px;
text-align: center;
padding: 30px;
margin: 30px auto;
}
.loader .loader-inner{
position: relative;
height: 80px;
-webkit-animation: loading-1 2s infinite linear;
animation: loading-1 2s infinite linear;
}
.loader .box{
width: 20px;
height: 20px;
border-radius: 50%;
position: absolute;
top: 50%;
margin-top: -10px;
background: #fa4032;
-webkit-animation: loading-2 2s infinite linear;
animation: loading-2 2s infinite linear;
}
.loader .box:nth-of-type(2){
-webkit-animation-delay: -1s;
animation-delay: -1s;
}
@-webkit-keyframes loading-1{
100%{
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loading-1{
100%{
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@-webkit-keyframes loading-2{
50%{ margin-left: 60px; }
}
@keyframes loading-2{
50%{ margin-left: 60px; }
}



Теги:
0

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

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