-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathstyles.css
82 lines (69 loc) · 1.36 KB
/
styles.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
* {
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000;
flex-direction: column;
}
.scroll {
position: relative;
display: flex;
width: 700px;
overflow: hidden;
-webkit-mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent)
}
.scroll div {
white-space: nowrap;
animation: scroll var(--time) linear infinite;
animation-delay: calc(var(--time)*-1);
}
.scroll div:nth-child(2) {
animation: scroll2 var(--time) linear infinite;
animation-delay: calc(var(--time)/-2);
}
@keyframes scroll {
0% {
transform: translateX(100%);
}
100% {
transform: translateX(-100%);
}
}
@keyframes scroll2 {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-200%);
}
}
.scroll div span {
display: inline-flex;
margin: 10px;
letter-spacing: 0.2em;
background: #333;
color: #fff;
padding: 5px 10px;
border-radius: 5px;
transition: 0.5s;
}
.scroll div span:hover {
background: #3fd2f9;
cursor: pointer;
}
.imgBox div {
display: flex;
align-items: center;
justify-content: center;
}
.imgBox img {
max-width: 100px;
scale: 0.8;
}