
Подробное описание и демонстрация работы полосы прогресса под номером №58 для библиотеки Bootstrap. Html и CSS код для реализации progress bar’a на сайте как на изображении.
Демо Шкалы прогресса — стиль 58
<div class="container"> <div class="row"> <div class="col-md-6"> <div class="progress"> <div class="progress-bar" style="width:60%; background:#e95095;"> <h3 class="progress-title">HTML5</h3> <div class="progress-value">60%</div> </div> </div> <div class="progress yellow"> <div class="progress-bar" style="width:80%; background:#ffcc00;"> <h3 class="progress-title">CSS3</h3> <div class="progress-value">80%</div> </div> </div> </div> </div> </div>css разметка для реализации полосы прогресса
.demo{ background: #585858; } .progress{ height: 50px; background-color: rgba(255,255,255,0.3); border-radius: 50px; box-shadow: none; padding: 5px; margin-bottom: 30px; overflow: visible; } .progress .progress-bar{ box-shadow: none; position: relative; border-radius: 20px; animation: animate-positive 2s; } .progress .progress-title{ font-size: 17px; font-weight: 700; color: #fff; text-transform: uppercase; margin: 0; position: absolute; top: 12px; left: 15px; } .progress .progress-value{ width: 45px; height: 33px; line-height: 35px; background: #f5f5f5; border-radius: 50px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); font-size: 14px; font-weight: bold; color: #e95095; position: absolute; top: 4px; right: 4px; } .progress.yellow .progress-value{ color: #ffcc00; } .progress.blue .progress-value{ color: #7049ba; } .progress.green .progress-value{ color: #5fad56; } @-webkit-keyframes animate-positive{ 0% { width: 0; } } @keyframes animate-positive{ 0% { width: 0; } }