-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarousel.css
57 lines (50 loc) · 923 Bytes
/
carousel.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 {
width: 100%;
max-width: 100vh;
height: calc(100vh - 359px);
overflow: hidden;
position: relative;
}
.carousel-container {
display: flex;
position: absolute;
width: 100%;
height: 100%;
transition: transform 0.5s ease-in-out;
}
.carousel-item {
flex-shrink: 0;
width: 100%;
height: 100%;
}
.carousel-item img {
width: 100%;
height: 100%;
object-fit: cover;
}
.carousel-control {
width: 40px;
height: 40px;
box-sizing: content-box;
font-size: 32px;
color: #fff;
background-color: #9e9e9e80;
border: none;
padding: 10px 10px;
border-radius: 50%;
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.carousel-control.prev {
left: 0;
}
.carousel-control.next {
right: 0;
}
@media(max-width: 800px) {
.carousel {
height: calc(100vh - 381px);
}
}