-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
57 lines (49 loc) · 1.03 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
.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;
}
.carousel .carousel__actions button#carousel__button--prev {
margin-left: 10px;
}
.carousel .carousel__actions button#carousel__button--next {
margin-right: 10px;
}
@keyframes fadeVisibility {
0% {
opacity: 0;
}
100% {
opacity: 1;
transform: opacity linear;
}
}