body{
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: grey;
}
.div{
    height: 50px;
    width: 60px;
    background-color: white;
    border-radius: 10px;
    margin: 20px;
    overflow: hidden;
}
.div div{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 40px;
}
.second div{
    animation: second 60s steps(60) infinite;
}
@keyframes second{
    from{
        transform: translateY(0px);
    }
    to{
        transform: translateY(-3000px);
    }
}

.minute div{
     animation: minute 3600s steps(60) infinite;
}

@keyframes minute{
    from{
        transform: translateY(0px);
    }
    to{
        transform: translateY(-3000px);
    }
}

.hour div{
     animation: hour 43200s steps(12) infinite;
}

@keyframes hour{
    from{
        transform: translateY(0px);
    }
    to{
        transform: translateY(-1200px);
    }
}
