-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinline_style_5.css
More file actions
151 lines (67 loc) · 1.97 KB
/
inline_style_5.css
File metadata and controls
151 lines (67 loc) · 1.97 KB
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
.marquee-container {
position: relative;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
background: #FFFFFF;
padding: 15px;
box-sizing: border-box;
margin: 5px;
border-radius: 5px;
display: flex;
align-items: center;
}
.trending-now {
display: flex;
align-items: center;
background: white;
color: black;
font-weight: 800;
z-index: 2; /* Higher z-index to stay above the marquee */
position: absolute; /* Fix it to the right side */
right: 0; /* Position it at the right end */
padding: 10px; /* Add padding for spacing */
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
}
.trending-now img {
width: 30px;
height: 20px;
margin-left: 10px; /* Add some space between text and image */
}
.marquee {
display: inline-block;
white-space: nowrap;
animation: marquee 100s linear infinite; /* Keep the original speed */
font-weight: 600;
padding-left: 100%; /* Start the text outside the container */
position: relative;
}
@keyframes marquee {
0% { transform: translateX(0); } /* Start instantly from the right */
100% { transform: translateX(-100%); } /* Move to the left */
}
.marquee:hover {
animation-play-state: paused; /* Hover to pause */
}
.trend-item {
padding: 0 10px; /* Gap between news items */
display: inline-block;
text-decoration: none; /* Text decorations */
}
.separator {
color: teal; /* Separator color */
background:none !important;
}
.play-pause-container {
background: white;
padding: 10px;
border-radius: 5px;
display: flex;
align-items: center;
z-index: 2; /* Higher z-index to stay above the marquee */
position: absolute; /* Fix it to the left side */
left: 0; /* Position it at the left end */
}
.play-pause-btn {
cursor: pointer;
}