﻿.ark-scroller-horiz {
    margin: 0 auto;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.ark-scroller-horiz:before,
.ark-scroller-horiz:after {
    position: absolute;
    top: 0;
    width: 50px;
    content: "";
    z-index: 1;
}

.ark-scroller-horiz:before {
    left: 0;
    background: linear-gradient(to right, #ccc 10%, transparent 80%);
}

.ark-scroller-horiz:after {
    right: 0;
    background: linear-gradient(to left, #ccc 10%, transparent 80%);
}

.ark-scroller-horiz-content {
    width: 500%;
    display: flex;
    line-height: 30px;
    animation: ark-scroller-horiz 10s linear infinite forwards;
}

.ark-scroller-horiz-content:hover {
    animation-play-state: paused;
}

.ark-scroll-horiz-item {
    display: flex;
    justify-content: space-around;
    width: 50%;
    /* reset list */
    list-style: none;
    padding: 0;
    margin: 0;
}

@keyframes ark-scroller-horiz {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
