Canlı Önizleme
1
Kayıt
2
Onay
3
Ödeme
Nasıl Kullanılır?
Div'lere verdiğiniz 'completed' sınıfı ile tamamlanan adımları mor, 'active' sınıfı ile şu anki adımı gösterirsiniz.
Kaynak Kodlar
HTML
<div class="stepper-wrapper">
<div class="stepper-item completed">
<div class="step-counter">1</div>
<div class="step-name">Kayıt</div>
</div>
<div class="stepper-item completed">
<div class="step-counter">2</div>
<div class="step-name">Onay</div>
</div>
<div class="stepper-item active">
<div class="step-counter">3</div>
<div class="step-name">Ödeme</div>
</div>
</div>
CSS
.stepper-wrapper { display: flex; justify-content: space-between; width: 100%; max-width: 400px; font-family: 'Inter', sans-serif; position: relative; margin-top: 20px; }
.stepper-wrapper::before { content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.1); z-index: 1; }
.stepper-item { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.step-counter { width: 30px; height: 30px; border-radius: 50%; background: #2a2a35; color: #a0a0b0; border: 2px solid rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; font-weight: bold; transition: 0.3s; }
.step-name { font-size: 13px; color: #a0a0b0; text-align: center; }
.stepper-item.completed .step-counter { background: #6C5CE7; border-color: #6C5CE7; color: #fff; }
.stepper-item.completed::after { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: #6C5CE7; z-index: -1; top: 15px; }
.stepper-item:first-child::after { content: none; }
.stepper-item.active .step-counter { border-color: #00cec9; color: #00cec9; font-size: 16px; box-shadow: 0 0 10px rgba(0,206,201,0.5); }
.stepper-item.active .step-name { color: #fff; font-weight: 600; }