-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollingtext.css
59 lines (48 loc) · 1.05 KB
/
rollingtext.css
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
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');
* {
margin: 0;
}
.wrapper{
/* border: 1px solid black; */
position: relative;
height: 34px;
max-width: 130px;
margin-inline: auto;
margin-top: 5rem;
overflow: hidden;
display: flex;
justify-content: center;
}
@keyframes scroll-updown {
to {
bottom: -60px;
}
}
.item {
width: 200px;
height: 1em;
/* background-color: rgba(255, 0, 0, 0.428); */
position: absolute;
text-align: center;
/* left: 100%; */
bottom: 100%;
animation-name: scroll-updown;
animation-duration: 5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
font-family: "Tinos";
font-size: 20px;
}
.item1 {
animation-delay: calc( 5s / 4 * (4 - 1) * -1);
}
.item2 {
animation-delay: calc( 5s / 4 * (4 - 2) * -1);
}
.item3 {
animation-delay: calc( 5s / 4 * (4 - 3) * -1);
}
.item4 {
animation-delay: calc( 5s / 4 * (4 - 4) * -1);
}