Подробное описание и демонстрация работы полосы прогресса под номером №20 для библиотеки Bootstrap. Html и CSS код для реализации progress bar’a на сайте как на изображении.
Демо Шкалы прогресса — стиль 20
HTML5
CSS3
JavaScript
<div class="container"> <div class="row"> <div class="col-md-6"> <h3 class="progressbar-title">HTML5</h3> <div class="progress"> <div class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 85%;" > <span>85%</span> </div> </div> <h3 class="progressbar-title">CSS3</h3> <div class="progress"> <div class="progress-bar progress-bar-danger progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 75%;"> <span>75%</span> </div> </div> </div> </div> </div>css разметка для реализации полосы прогресса
.progress{ height:5px; border-radius: 0; box-shadow: none; line-height: 35px; overflow: visible; background:#d6d6d6; } .progressbar-title{ color:#333; font-size:15px; margin:5px 0 5px; } .progress .progress-bar{ position: relative; } .progress .progress-bar span{ position: absolute; right: 27px; top: -30px; background: #000; color: #fff; padding:0 8px; display: block; font-size: 11px; border-radius:3px; text-align: center; } .progress .progress-bar span:after{ content: ""; border-top: 6px solid #000; border-left: 6px solid transparent; border-right: 6px solid transparent; position: absolute; bottom: -6px; left: 50%; margin-left: -5px; } .progress-bar.active{ animation: reverse progress-bar-stripes 0.90s linear infinite; }