second Progress bar

 index.html

<!DOCTYPE html>
<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">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="main">
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
        <div class="br"></div>
    </div>
    <div class="bottombar">
        <img src="./assests/home.png" width="30px" height="30px" alt="">
        <img src="./assests/heart.png" width="30px" height="30px" alt="">
        <img src="./assests/account.png" width="30px" height="30px" alt="">
        <img src="./assests/information-button.png" width="30px" height="30px" alt="">
        <img src="./assests/loupe.png" width="30px" height="30px" alt="">
        <img src="./assests/setting.png" width="30px" height="30px" alt="">
    </div>
</body>
</html>

style.css

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,body{
    width: 100%;
    height: 100%;
}
.main{
    width: 60%;
    height: 150px;
    justify-content: space-between;
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.main .br{
    width: 10px;
    justify-content: space-between;
    background: white;
    border-radius: 10px;
    animation: moves 1.5s ease-in-out infinite;
}
@keyframes moves {
    0%,100%{
        height: 0px;
        /* background: red; */
    }50%{
        height: 100px;
    }
}
.br:nth-child(1){
    background: rgba(194, 75, 75, 0.811);
    animation-delay: 1s;
}.br:nth-child(2){
    background: rgba(255, 234, 0, 0.886);
    animation-delay: 0.8s;
}.br:nth-child(3){
    background: rgb(109, 216, 15);
    animation-delay: 0.6s;
}.br:nth-child(4){
    background: rgba(72, 178, 113, 0.804);
    animation-delay: 0.4s;
}.br:nth-child(5){
    background: rgb(44, 181, 181);
    animation-delay: 0.2s;
}.br:nth-child(6){
    background: red;
    animation-delay: 0.2s;
}.br:nth-child(7){
    background: rgba(0, 170, 255, 0.731);
    animation-delay: 0.4s;
}.br:nth-child(8){
    background: rgb(134, 18, 184);
    animation-delay: 0.6s;
}.br:nth-child(9){
    background: rgb(208, 22, 124);
    animation-delay: 0.8s;
}.br:nth-child(10){
    background: rgb(203, 110, 140);
    animation-delay: 1s;
}.br:nth-child(11){
    background: rgb(105, 90, 90);
    animation-delay: 1s;
}.br:nth-child(12){
    background: rgb(57, 50, 50);
    animation-delay: 0.8s;
}.br:nth-child(13){
    background: rgb(16, 44, 2);
    animation-delay: 0.6s;
}.br:nth-child(14){
    background: rgb(234, 234, 234);
    animation-delay: 0.4s;
}.br:nth-child(15){
    background: rgb(79, 77, 77);
    animation-delay: 0.2s;
}.br:nth-child(16){
    background: rgba(80, 151, 82, 0.578);
    animation-delay: 0.2s;
}.br:nth-child(17){
    background: rgb(107, 83, 83);
    animation-delay: 0.4s;
}.br:nth-child(18){
    background: rgb(255, 255, 0);
    animation-delay: 0.6s;
}.br:nth-child(19){
    background: rgba(154, 87, 87, 0.751);
    animation-delay: 0.8s;
}.br:nth-child(20){
    background: rgb(134, 104, 104);
    animation-delay: 1s;
}.br:nth-child(21){
    background: rgba(194, 75, 75, 0.811);
    animation-delay: 1s;
}.br:nth-child(22){
    background: rgba(255, 234, 0, 0.886);
    animation-delay: 0.8s;
}.br:nth-child(23){
    background: rgb(109, 216, 15);
    animation-delay: 0.6s;
}.br:nth-child(24){
    background: rgba(72, 178, 113, 0.804);
    animation-delay: 0.4s;
}.br:nth-child(25){
    background: rgb(44, 181, 181);
    animation-delay: 0.2s;
}.br:nth-child(26){
    background: red;
    animation-delay: 0.2s;
}.br:nth-child(27){
    background: rgba(0, 170, 255, 0.731);
    animation-delay: 0.4s;
}.br:nth-child(28){
    background: rgb(134, 18, 184);
    animation-delay: 0.6s;
}.br:nth-child(29){
    background: rgb(208, 22, 124);
    animation-delay: 0.8s;
}.br:nth-child(30){
    background: rgb(203, 110, 140);
    animation-delay: 1s;
}.br:nth-child(31){
    background: rgb(105, 90, 90);
    animation-delay: 1s;
}.br:nth-child(32){
    background: rgb(57, 50, 50);
    animation-delay: 0.8s;
}.br:nth-child(33){
    background: rgb(16, 44, 2);
    animation-delay: 0.6s;
}.br:nth-child(34){
    background: rgb(234, 234, 234);
    animation-delay: 0.4s;
}.br:nth-child(35){
    background: rgb(79, 77, 77);
    animation-delay: 0.2s;
}.br:nth-child(36){
    background: rgba(80, 151, 82, 0.578);
    animation-delay: 0.2s;
}.br:nth-child(37){
    background: rgb(107, 83, 83);
    animation-delay: 0.4s;
}.br:nth-child(38){
    background: rgb(255, 255, 0);
    animation-delay: 0.6s;
}.br:nth-child(39){
    background: rgba(154, 87, 87, 0.751);
    animation-delay: 0.8s;
}.br:nth-child(30){
    background: rgb(134, 104, 104);
    animation-delay: 1s;
}

/* //bottom bar  */
.bottombar{
    width: 350px;
    height: 7%;
    box-shadow: 0 0 20px black;
    position: absolute;
    bottom: 10px;
    border-radius:10px;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    align-items: center;
    padding: 5px;
    justify-content: space-between;
}
.bottombar img{
    border-radius: 5px;
    transition: 1s;
}
.bottombar img:hover{
    background-color: rgba(210, 210, 210, 0.785);
    border-radius: 5px;
    padding: 4px;
    box-shadow: 0 0 5px rgb(94, 94, 94);
    transition: 0.4s;
}

output: - 




إرسال تعليق

Post a Comment (0)

أحدث أقدم