-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
60 lines (51 loc) · 1.04 KB
/
style.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
.carousel {
overflow: hidden;
max-width: 600px;
position: relative;
}
.carousel .carousel__item,
.carousel .carousel__item--hidden {
display: none;
}
.carousel .carousel__item img {
width: 100%;
max-width: 600px;
height: auto;
}
.carousel .carousel__item--visible {
display: block;
animation: fadeVisibility 0.5s;
}
.carousel .carousel__actions {
display: flex;
width: 100%;
justify-content: space-between;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.carousel .carousel__actions button {
border-radius: 50px;
border: 0;
font-weight: bold;
cursor: pointer;
width: 40px;
height: 40px;
color: #FFF;
background-color: #242424;
}
.carousel .carousel__actions button[data-js="carousel__button--prev"] {
margin-left: 20px;
}
.carousel .carousel__actions button[data-js="carousel__button--next"] {
margin-right: 20px;
}
@keyframes fadeVisibility {
0% {
opacity: 0;
}
100% {
opacity: 1;
transform: opacity linear;
}
}