
Подробное описание и демонстрация работы полосы прогресса под номером №50 для библиотеки Bootstrap. Html и CSS код для реализации progress bar’a на сайте как на изображении.
Демо Шкалы прогресса — стиль 50
HTML5
CSS3
J-Query
Bootstrap
<div class="container"> <div class="row"> <div class="col-md-6"> <h3 class="progress-title">HTML5</h3> <div class="progress blue"> <div class="progress-bar" style="width: 85%;"> <div class="progress-value">85%</div> </div> </div> <h3 class="progress-title">CSS3</h3> <div class="progress yellow"> <div class="progress-bar" style="width: 60%;"> <div class="progress-value">60%</div> </div> </div> </div> </div> </div>css разметка для реализации полосы прогресса
.progress-title{ font-size: 18px; font-weight: 700; color: #000; margin: 0 0 20px; } .progress{ height: 5px; border-radius: 0; box-shadow: none; margin-bottom: 30px; overflow: visible; } .progress .progress-bar{ background: transparent; box-shadow: none; position: relative; -webkit-animation: animate-positive 2s; animation: animate-positive 2s; } .progress .progress-bar:after{ content: "f111"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 15px; color: #2e282a; position: absolute; top: -8px; right: 0; } .progress .progress-value{ display: block; font-size: 18px; font-weight: bold; color: #000; position: absolute; top: -30px; right: 5px; } .progress.blue{ background: #049dff; } .progress.yellow{ background: #fdba04; } .progress.pink{ background: #ed687c; } .progress.green{ background: #1abc9c; } @-webkit-keyframes animate-positive{ 0% { width: 0%; } } @keyframes animate-positive{ 0% { width: 0%; } }