.ticker-wrapper {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 10s linear infinite;
    color: red;
    font-size: 1.3rem;
}

.ticker span {
    display: inline-block;
    padding-right: 1rem; /* spacing between loops */
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100vw); /* Start fully off-screen to the right */
    }
    100% {
        transform: translateX(-100%); /* Move fully off-screen to the left */
    }
}