-
Notifications
You must be signed in to change notification settings - Fork 171
/
Copy pathFeaturedAppsCarousel.module.scss
82 lines (70 loc) · 1.28 KB
/
FeaturedAppsCarousel.module.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
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
.heading {
font-size: 2.5em;
font-weight: 900;
}
.carouselContainer {
width: 100%;
overflow: hidden;
position: relative;
padding: 2rem 0;
&::before,
&::after {
content: '';
position: absolute;
top: 0;
width: 5%;
height: 100%;
z-index: 1;
}
&::before {
left: 0;
background: linear-gradient(to right, #fff 0%, transparent 100%);
[data-theme='dark'] & {
background: linear-gradient(
to right,
var(--ifm-background-color) 0%,
transparent 100%
);
}
}
&::after {
right: 0;
background: linear-gradient(to left, #fff 0%, transparent 100%);
[data-theme='dark'] & {
background: linear-gradient(
to left,
var(--ifm-background-color) 0%,
transparent 100%
);
}
}
}
.carouselTrack {
display: flex;
animation: scroll 30s linear infinite;
&:hover {
animation-play-state: paused;
}
}
.customerLogo {
flex-shrink: 0;
padding: 0 2rem;
img {
height: 2.5rem;
width: auto;
opacity: 0.7;
transition: opacity 0.3s ease;
&:hover {
opacity: 1;
}
}
}
@keyframes scroll {
0% {
transform: translateX(0);
}
100% {
// Move the track left by 50% since we duplicated the items
transform: translateX(-50%);
}
}