Bootstrap Progress Bar — стиль 75

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

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

HTML5

65%

CSS3

87%

J-Query

55%

PHP

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

<div class="container">
<div class="row">
<div class="col-md-6">
<h3 class="progress-title">HTML5</h3>
<div class="progress red">
<div class="progress-bar progress-bar-danger progress-bar-striped active" style="width:65%;">
<div class="progress-value">65%</div>
</div>
</div>
<h3 class="progress-title">CSS3</h3>
<div class="progress blue">
<div class="progress-bar progress-bar-info progress-bar-striped active" style="width:87%;">
<div class="progress-value">87%</div>
</div>
</div>
</div>
</div>
</div>

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

.progress-title{
font-size: 18px;
font-weight: 700;
color: #000;
letter-spacing: 2px;
margin: 0 0 15px;
}
.progress{
height: 26px;
background: rgba(0,0,0,0.1);
border-radius: 0;
box-shadow: none;
margin-bottom: 40px;
overflow: visible;
position: relative;
}
.progress .progress-bar{
box-shadow: none;
border-radius: 0;
position: relative;
-webkit-animation: 2s linear 0s normal none infinite running progress-bar-stripes,animate-positive 1s;
animation: 2s linear 0s normal none infinite running progress-bar-stripes,animate-positive 1s;
}
.progress-bar .progress-value{
width: 50px;
height: 100%;
background: #000;
font-size: 15px;
font-weight: 600;
color: #fff;
position: absolute;
line-height: 27px;
top: 0;
left: 0;
}
.progress:after,
.progress .progress-bar:after,
.progress .progress-value:after{
content: "";
border-left: 13px solid rgba(0,0,0,0.1);
border-top: 13px solid transparent;
border-bottom: 13px solid transparent;
position: absolute;
top: 0;
right: -13px;
}
.progress.red .progress-bar:after{ border-left-color: #d9534f; }
.progress .progress-value:after{ border-left: 13px solid #000; }
.progress.blue .progress-bar:after{ border-left-color: #5bc0de; }
.progress.yellow .progress-bar:after{ border-left-color: #f0ad4e; }
.progress.green .progress-bar:after{ border-left-color: #5cb85c; }
@-webkit-keyframes animate-positive{
0%{ width: 0; }
}
@keyframes animate-positive{
0%{ width: 0; }
}



Теги:
0

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

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