Bootstrap Progress Bar — стиль 49

Подробное описание и демонстрация работы полосы прогресса под номером №49 для библиотеки Bootstrap. Html и CSS код для реализации progress bar’a на сайте как на изображении.

Демо Шкалы прогресса — стиль 49

HTML5

[85%]

CSS3

[60%]

J-Query

[90%]

Bootstrap

[75%]
html разметка для реализации полосы прогресса

<div class="container">
<div class="row">
<div class="col-md-6">
<h3 class="progress-title">HTML5</h3>
<div class="progress">
<div class="progress-bar" style="width:85%; background:#cc504c;"></div>
<span class="progress-value">[85%]</span>
</div>

<h3 class="progress-title">CSS3</h3>
<div class="progress">
<div class="progress-bar" style="width:60%; background:#5cb85c;"></div>
<span class="progress-value">[60%]</span>
</div>
</div>
</div>
</div>

css разметка для реализации полосы прогресса

.progress-title{
font-size: 16px;
font-weight: 600;
letter-spacing: 0.7px;
color: #414141;
text-transform: uppercase;
margin: 10px 0 5px;
}
.progress{
height: 5px;
background: #d6d6d6;
border-radius: 0;
box-shadow: none;
margin-bottom: 40px;
overflow: visible;
position: relative;
}
.progress .progress-bar{
position: relative;
-webkit-animation: animate-positive 2s;
animation: animate-positive 2s;
}
.progress .progress-bar:after{
content: "f3c5";
font-family: "Font Awesome 5 Free";
font-weight: 900;
position: absolute;
top: -20px;
right: -7px;
font-size: 25px;
font-weight: 700;
color: #414141;
}
.progress .progress-value{
display: block;
font-size: 12px;
color: #414141;
position: absolute;
top: -23px;
right: 0;
}
@-webkit-keyframes animate-positive{
0% { width: 0%; }
}
@keyframes animate-positive{
0% { width: 0%; }
}



Теги:
0

Оставить своё мнение

Ваш e-mail не будет опубликован. Обязательные поля помечены *