-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappend_marquee_css.py
More file actions
40 lines (35 loc) · 851 Bytes
/
append_marquee_css.py
File metadata and controls
40 lines (35 loc) · 851 Bytes
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
/* Marquee / Infinite Logo Scroll */
.logo-marquee {
overflow: hidden;
white-space: nowrap;
position: relative;
width: 100%;
padding: 40px 0;
background: transparent; /* Or match footer bg */
}
.logo-track {
display: flex;
width: max-content; /* Important for fitting all items */
animation: marquee 20s linear infinite;
}
.logo-item {
flex: 0 0 auto;
margin: 0 40px;
display: flex;
align-items: center;
justify-content: center;
}
.logo-item img {
height: 80px; /* Uniform height */
width: auto;
object-fit: contain;
max-width: 150px;
}
@keyframes marquee {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); } /* Move by half the width (one full set) */
}
/* Pause on hover for better UX */
.logo-track:hover {
animation-play-state: paused;
}