-
Notifications
You must be signed in to change notification settings - Fork 0
/
_marquee.scss
50 lines (42 loc) · 949 Bytes
/
_marquee.scss
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
// https://codepen.io/fcalderan/pen/GRJeYOL
@keyframes marquee {
0% { transform: translateX(0); }
100% { transform: translateX(-100%); }
}
.marquee {
display: flex;
align-items: center;
gap: 12px;
background-color: var(--red);
height: 38px;
overflow: hidden;
color: var(--white);
font: 16px var(--accent-font);
text-transform: uppercase;
white-space: nowrap;
}
.marquee__fragment {
&::after {
content: '•'
}
}
.marquee__wrapper {
--tw: 104em;
--ad: 15s;
width: var(--tw);
text-shadow: var(--tw) 0 currentColor,
calc(var(--tw) * 2) 0 currentColor,
calc(var(--tw) * 3) 0 currentColor,
calc(var(--tw) * 4) 0 currentColor;
//will-change: transform;
animation: marquee var(--ad) linear infinite;
}
@include breakpoint {
.marquee {
height: 60px;
font-size: 22px;
}
.marquee__wrapper {
--tw: 2290px; /* 104em багует :( */
}
}