JSFiddle - React, Tailwind, and code Playground

by rami7250

HTML

<h3>עיצוב 1: סרגל זכוכית (עם אנימציה חלקה)</h3>
<div class="progress-bar-wrapper glassy-bar-final-corrected">
    <div class="progress-bar-background">
        <div class="progress-bar-progress-wrap" style="width: 70%;">
            <div class="progress-bar-progress">
                <span class="percentage">0%</span>
            </div>
        </div>
    </div>
</div>

CSS

.glassy-bar-final-corrected {
    background: #383838;
    padding: 30px;
    border-radius: 10px;
}
.glassy-bar-final-corrected .progress-bar-background {
    background: linear-gradient(to bottom, #111, #222);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid #666;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
}
.glassy-bar-final-corrected .progress-bar-progress-wrap {
    width: 0%;
    filter: drop-shadow(0 0 10px rgba(0, 225, 255, 0.8));
    transition: width 2.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.glassy-bar-final-corrected .progress-bar-progress {
    height: 24px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* שכבות הרקע של הפסים והצבע הראשי */
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.3), transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent),
        linear-gradient(to right, #0077be, #00eaff);
    
    background-size: 100% 100%, 40px 40px, 100% 100%;
    /* אנימציית הפסים בלבד */
    animation: smooth-stripes 1.5s linear infinite;
}

/* 
 שכבה חדשה (pseudo-element) עבור אפקט ה"עשן" בלבד.
 ההפרדה הזו מונעת את הקפיצה.
*/
.glassy-bar-final-corrected .progress-bar-progress::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 40%);
    
    background-size: 150% 100%, 150% 100%;
    background-position: -50% 0, 50% 0;
    
    /* אנימציית ה"נשימה" של העשן בלבד, נעה קדימה ואחורה */
    animation: smooth-smoke 6s...