Bootstrap Progress Bar — стиль 67

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

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

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">
<div class="progress-bar" style="width:65%;">
<div class="progress-value">65%</div>
</div>
</div>

<h3 class="progress-title">CSS3</h3>
<div class="progress yellow">
<div class="progress-bar" 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;
text-transform: uppercase;
letter-spacing: 2px;
margin: 0 0 30px;
}
.progress{
height: 10px;
background: #000;
border-radius: 0;
box-shadow: none;
margin-bottom: 40px;
overflow: visible;
position: relative;
}
.progress .progress-bar{
background: #fff;
border-radius: 0;
position: relative;
-webkit-animation: animate-positive 2s;
animation: animate-positive 2s;
}
.progress .progress-bar:before{
content: "";
width: 100%;
border-top: 10px double #f95738;
border-right: 25px solid #000;
position: absolute;
top: 0;
left: 0;
}
.progress .progress-value{
font-size: 18px;
font-weight: 700;
color: #000;
position: absolute;
top: -32px;
right: -5px;
}
.progress.yellow .progress-bar:before{ border-top-color: #ecb82d; }
.progress.green .progress-bar:before{ border-top-color: #65c168; }
.progress.blue .progress-bar:before{ border-top-color: #165692; }
@-webkit-keyframes animate-positive{
0% { width: 0; }
}
@keyframes animate-positive{
0% { width: 0; }
}



Теги:
0

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

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