-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappend_css.py
More file actions
46 lines (39 loc) · 861 Bytes
/
append_css.py
File metadata and controls
46 lines (39 loc) · 861 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
41
42
43
44
45
46
css_content = """
/* Marquee / Infinite Logo Scroll */
.logo-marquee {
overflow: hidden;
white-space: nowrap;
position: relative;
width: 100%;
padding: 40px 0;
/* background: transparent; */
}
.logo-track {
display: flex;
width: max-content;
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;
width: auto;
object-fit: contain;
max-width: 150px;
}
@keyframes marquee {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
.logo-track:hover {
animation-play-state: paused;
}
"""
with open(r"c:\Users\assdr\Desktop\New Project\custom.css", "a", encoding="utf-8") as f:
f.write(css_content)
print("Appended CSS.")