﻿.ticker-container {
    position: relative;
    width: 100%;
}

.ticker-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    display: flex;
    transform: translateY(-50%);
    overflow: hidden;
    grid-gap: 80px;
    gap: 80px;
    grid-gap: var(--spacing-xxl);
    gap: var(--spacing-xxl)
}

.ticker-wrapper-gradient {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    background: linear-gradient(90deg,var(--component-background-color),transparent 15%,transparent 85%,var(--component-background-color))
}

.ticker-wrapper .ticker-items {
    min-width: calc(100% - 80px);
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    grid-gap: 40px;
    gap: 40px;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-direction: normal;
    animation-direction: normal;
    -webkit-animation-fill-mode: none;
    animation-fill-mode: none;
    -webkit-animation-play-state: running;
    animation-play-state: running;
    will-change: transform;
}

.ticker-items ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

    .ticker-items ul li {
        white-space: nowrap;
        font-family: var(--bold-cn-font);
        display: flex;
        align-items: center;
        padding-right: 20px;
        border-right: 1px solid var(--font-color);
        margin-left: 20px;
    }

@-webkit-keyframes ticker-item-slide {
    0% {
        transform: translate3d(0, 0, 0)
    }

    to {
        transform: translate3d(calc(-100%), 0, 0);
    }
}

@keyframes ticker-item-slide {
    0% {
        transform: translate3d(0, 0, 0)
    }

    to {
        transform: translate3d(calc(-100%), 0, 0);
    }
}
