Bootstrap Progress Bar — стиль 72

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

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

HTML5

60%

CSS3

90%

J-Query

50%

PHP

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

<div class="container">
<div class="row">
<div class="col-md-6">
<h3 class="progress-title">HTML5</h3>
<div class="progress orange">
<div class="progress-bar" style="width:60%; background:#fe3b3b;">
<div class="progress-value">60%</div>
</div>
</div>
<h3 class="progress-title">CSS3</h3>
<div class="progress blue">
<div class="progress-bar" style="width:90%; background:#1a4966;">
<div class="progress-value">90%</div>
</div>
</div>
</div>
</div>
</div>

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

.progress-title{
font-size: 18px;
font-weight: 700;
color: #333;
text-transform: uppercase;
margin: 0 0 25px;
}
.progress{
height: 10px;
background: #e9e9ea;
border-radius: 15px;
margin-bottom: 30px;
overflow: visible;
position: relative;
}
.progress:before,
.progress:after{
content: "";
width: 20px;
height: 20px;
border-radius: 50%;
background: #fff;
position: absolute;
top: -5px;
left: 0;
z-index: 1;
}
.progress:after{
border: 7px solid #e9e9ea;
left: auto;
right: 0;
}
.progress .progress-bar{
box-shadow: none;
border: none;
border-radius: 15px;
position: relative;
-webkit-animation: animate-positive 1s;
animation: animate-positive 1s;
}
.progress .progress-value{
width: 70px;
height: 35px;
line-height: 27px;
border-radius: 20px;
background: #fff;
font-size: 17px;
font-weight: 600;
position: absolute;
top: -12px;
right: 0;
z-index: 2;
}
.progress.orange:before{ border: 7px solid #fe3b3b; }
.progress.blue:before{ border: 7px solid #1a4966; }
.progress.green:before{ border: 7px solid #53aa2c; }
.progress.purple:before{ border: 7px solid #66406f; }
.progress.orange .progress-value{
border: 5px solid #fe3b3b;
color: #fe3b3b;
}
.progress.blue .progress-value{
border: 5px solid #1a4966;
color: #1a4966;
}
.progress.green .progress-value{
border: 5px solid #53aa2c;
color: #53aa2c;
}
.progress.purple .progress-value{
border: 5px solid #66406f;
color: #66406f;
}
@-webkit-keyframes animate-positive{
0%{ width: 0; }
}
@keyframes animate-positive{
0%{ width: 0; }
}



Теги:
0

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

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