
Подробное описание и демонстрацией работы эффекта загрузки под номером №141 для бибилиотеки Bootstrap. Html и CSS код для реализации preloader’a сайта как на изображении.
Демонстрация эффекта загрузки страницы — стиль 141
<div class="container"> <div class="row"> <div class="col-md-12"> <div class="loader"> <div class="loader-inner"></div> </div> </div> </div> </div>css разметка для реализации эффекта загрузки страницы
.loader{ width: 100px; height: 100px; text-align: center; padding: 20px 0; margin: 55px auto; } .loader .loader-inner{ display: inline-block; width: 73px; height: 73px; border-radius: 4px; border-bottom: 5px solid #fec900; overflow: hidden; position: relative; } .loader .loader-inner:before, .loader .loader-inner:after{ content: ""; background: #fec900; border-radius: 50%; position: absolute; } .loader .loader-inner:before{ width: 34px; height: 34px; left: 26.5%; -webkit-animation: loading-1 1.55s ease-in infinite; animation: loading-1 1.55s ease-in infinite; animation-direction: alternate; } .loader .loader-inner:after{ width: 15px; height: 15px; left: 39.5%; transform: translateY(219px); -webkit-animation: loading-2 1.55s ease-out infinite; animation: loading-2 1.55s ease-out infinite; animation-direction: alternate; } @-webkit-keyframes loading-1{ from{ -webkit-transform: translateY(0px); } to{ -webkit-transform: translateY(249px); } } @keyframes loading-1{ from{ transform: translateY(0px); } to{ transform: translateY(249px); } } @-webkit-keyframes loading-2{ from{ -webkit-transform: translateY(219px); } to{ -webkit-transform: translateY(0px); } } @keyframes loading-2{ from{ transform: translateY(219px); } to{ transform: translateY(0px); } }