Skip to main content

Use CSS variable (animation progress)

This is CSS sheet(progress bar)

/* progress animation */
.progres-ani{
    background-color: gray;
    width: 300px;
    padding: 10px 10px;
    margin: 0 auto;
    box-sizing: border-box;
    border: 3px solid black;
    border-radius: 10px;
}
.progres-ani li{
    list-style-type: none;
    margin: 30px 0;
    font-weight: bolder;
    text-transform: uppercase;
    position: relative;
}
.progres-ani li::before{
    content: '';
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    border-radius: 1000px;
    background-color: rgba(202, 186, 186, 0.705);
    width: 100%;
    height: 15px;
}
.progres-ani li::after{
    content: '';
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    border-radius: 1000px;
    background-color: rgba(245, 244, 238, 0.705);
    width: 0;
    height: 15px;

    animation-duration: 3s;
    animation-timing-function: linear;
    animation-delay: 1s;
    animation-iteration-count: 3;
    /* animation-direction: forward; */
    animation-fill-mode: forwards;
}
.progres-ani li.html102::after{
    animation-name: html102;
}
@keyframes html102{
    to{
        width: 80%;
        background-color: rgb(236, 155, 3);
    }
}
.progres-ani li.css1::after{
    animation-name: css1;
}
@keyframes css1{
    to{
        width: 70%;
        background-color: rgb(226, 47, 2);
    }
}
.progres-ani li.java1::after{
    animation-name: java1;
}
@keyframes java1{
    to{
        width: 60%;
        background-color: rgb(47, 201, 8);
    }
}
.progres-ani li.python1::after{
    animation-name: python1;
}
@keyframes python1{
    to{
        width: 50%;
        background-color: rgb(3, 228, 179);
    }
}
.progres-ani li.recat1::after{
    animation-name: recat1;
}
@keyframes recat1{
    to{
        width: 65%;
        background-color: rgb(6, 96, 214);
    }
}
.progres-ani li.php1::after{
    animation-name: php1;
}
@keyframes php1{
    to{
        width: 50%;
        background-color: rgb(87, 3, 243);
    }
}
.progres-ani li.js1::after{
    animation-name: js1;
}
@keyframes js1{
    to{
        width: 60%;
        background-color: rgb(212, 5, 185);
    }
}
 This is HTML sheet

 <h1>This is CSS progress animation</h1><br>
               <div class="progres-ani">
                   <li class="html102">html</li>
                   <li class="css1">css</li>
                   <li class="java1">java</li>
                <li class="python1">python</li>
                   <li class="recat1">Recat</li>
                   <li class="php1">php</li>
                   <li class="js1">nodjs</li>
               </div>
               <div class="div-clear"><br><hr><br>  

Comments

Popular posts from this blog

feture

Use  <nav>,<figure>,<ifrem>,<samp>,<var> Tag < html lang = "en" > < head >   < meta charset = "UTF-8" >   < meta http-equiv = "X-UA-Compatible" content = "IE=edge" >   < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >   < style >     header {       text-align : center ;     }     body {       background-color : rgb ( 196 , 152 , 72 );     }     .agp {       width : 100% ;       height : 250px ;    }     .fcss {     border : 3px solid red ;     border-radius : 5px ;     padding : 5px ;     margin : 2px ;     width : 50% ;    }     .fs {       text-align : center ;     }     .t1 , .t2 , .t3 , .t4 {       background-colo...
Use CSS variable (form and list style)  If you want icon like -list ..Go to this wed -site : https://fontawesome.com/v5.15/icons?d=gallery&p=2&q=tick And attest HTML <header> this link : <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> This is CSS sheet /* form style */ .text-are12 {     resize : none ;     border : 3px solid rgb ( 71 , 3 , 3 );     border-radius : 5px ;     margin : 10px ; } input [ type = "submit" ], input [ type = "reset" ]{     width : 90px ;     border : none ;     margin : 10px ;     border-radius : 5px ;     padding : 5px ;     background-color : olivedrab ;     color : white ;     cursor : pointer...