
Подробное описание и демонстрация работы полосы прогресса под номером №27 для библиотеки Bootstrap. Html и CSS код для реализации progress bar’a на сайте как на изображении.
Демо Шкалы прогресса — стиль 27
HTML5
CSS3
Java Script
<div class="container"> <div class="row"> <div class="col-md-6"> <h3 class="progressbar-title">HTML5</h3> <div class="progress"> <div class="progress-bar" style="width: 55%; background:#005394;"> <span>55%</span> </div> </div> <h3 class="progressbar-title">CSS3</h3> <div class="progress"> <div class="progress-bar" style="width: 85%; background:#d9534f;"> <span>85%</span> </div> </div> </div> </div> </div>css разметка для реализации полосы прогресса
.progress{ height: 30px; line-height: 35px; background: #a5a5a5; box-shadow: none; padding: 6px; margin-top:20px; overflow: visible; border-radius:10px; } .progress:after{ content: ""; display: block; border-top: 4px dashed #fff; margin-top:8px; } .progressbar-title{ color:#333; font-size:15px; margin:5px 0; } .progress .progress-bar{ position: relative; border-radius: 10px 0 0 10px; animation: animate-positive 2s; } .progress .progress-bar span{ position: absolute; top: -50px; right: -40px; color: #fff; display: block; font-size: 17px; font-weight: bold; padding: 5px 7px; background: #333; border-radius: 0 0 5px 5px; } .progress .progress-bar span:before{ content: ""; position: absolute; bottom: -14px; left: 18px; border: 7px solid transparent; border-top: 7px solid #333; } .progress .progress-bar span:after{ content: "f072"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 48px; color: #333; position: absolute; top: 51px; right: 6px; } @-webkit-keyframes animate-positive { 0% { width: 0%;} } @keyframes animate-positive { 0% { width:0%; } }