* { box-sizing: border-box; }
@keyframes up-down {
    from { transform: translateY(0); }
    to { transform: translateY(10px); }
}
body {
    font-family: sans-serif;
    font-weight: bold;
    text-align: center;
}
.space {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgb(0 0 0 / 20%);
    color: #FFF;
    width: 100%;
    height: 100dvh;
    padding: 1rem;
}
.space .animate {
    animation-name: up-down;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
}
.examples,
.examples > * {
    font-size: 2em;
    margin: 3rem 0;
}
.examples #example2,
.examples #example3 .counter-bar {
    background-color: #b62b2b;
    height: 80px;
}
.examples #example3 { position: relative; }
.examples #example3 .counter-number {
    position: absolute;
    color: #FFF;
    line-height: 80px;
    width: 100%;
    top: 0;
    left: 0;
}