File size: 1,682 Bytes
86fbe37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
.logo-loop-container {
    --logo-height: 36px;
    --logo-gap: 56px;
    --animation-duration: 20s;
    --fade-color: #050505;

    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Fade edges */
.logo-loop-container.with-fade::before,
.logo-loop-container.with-fade::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 768px) {

    .logo-loop-container.with-fade::before,
    .logo-loop-container.with-fade::after {
        width: 100px;
    }
}

.logo-loop-container.with-fade::before {
    left: 0;
    background: linear-gradient(to right, var(--fade-color) 0%, transparent 100%);
}

.logo-loop-container.with-fade::after {
    right: 0;
    background: linear-gradient(to left, var(--fade-color) 0%, transparent 100%);
}

/* The scrolling track */
.logo-track {
    display: flex;
    align-items: center;
    gap: var(--logo-gap);
    width: max-content;
    animation: scrollLogos var(--animation-duration) linear infinite;
}

/* Pause on hover */
.logo-loop-container.pause-on-hover:hover .logo-track {
    animation-play-state: paused;
}

/* Individual logo items */
.logo-item {
    flex-shrink: 0;
    font-size: var(--logo-height);
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.15);
}

/* Infinite scroll animation */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}