📊 Progress Bar
Прогресс-бары с различными стилями
← Назад к Загрузчики
Классический
HTML
<div class="progress-classic"><div class="progress-classic-bar"></div></div>
CSS
.progress-classic {
width: 300px;
height: 8px;
background: #f0f0f0;
border-radius: 4px;
overflow: hidden;
}
.progress-classic-bar {
width: 65%;
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 4px;
animation: progress-anim 2s ease-in-out infinite;
}
@keyframes progress-anim {
0% { width: 0%; }
50% { width: 100%; }
100% { width: 0%; }
}
С процентами
HTML
<div class="progress-percent">
<div class="progress-percent-header">
<span>Uploading...</span>
<span class="progress-percent-value">75%</span>
</div>
<div class="progress-percent-bar">
<div class="progress-percent-fill"></div>
</div>
</div>
CSS
.progress-percent {
width: 300px;
}
.progress-percent-header {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
font-size: 0.85rem;
color: #1a1a2e;
font-weight: 600;
}
.progress-percent-value {
color: #667eea;
}
.progress-percent-bar {
width: 100%;
height: 10px;
background: #f0f0f0;
border-radius: 5px;
overflow: hidden;
}
.progress-percent-fill {
width: 75%;
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
border-radius: 5px;
animation: progress-fill 3s ease-in-out infinite;
}
@keyframes progress-fill {
0% { width: 0%; }
50% { width: 100%; }
100% { width: 0%; }
}
Полосатый
HTML
<div class="progress-striped"><div class="progress-striped-bar"></div></div>
CSS
.progress-striped {
width: 300px;
height: 12px;
background: #f0f0f0;
border-radius: 6px;
overflow: hidden;
}
.progress-striped-bar {
width: 100%;
height: 100%;
background: linear-gradient(
45deg,
#667eea 25%,
#764ba2 25%,
#764ba2 50%,
#667eea 50%,
#667eea 75%,
#764ba2 75%,
#764ba2
);
background-size: 20px 20px;
animation: stripes 1s linear infinite;
}
@keyframes stripes {
0% { background-position: 0 0; }
100% { background-position: 20px 0; }
}