-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarousel.css
79 lines (79 loc) · 1.58 KB
/
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
body{
margin: 0;
padding: 0;
}
#container {
height: 100vh;
display: grid;
place-items: center
}
#slider-container {
height: 300px;
width: 85vw;
max-width: 1400px;
position: relative;
overflow: hidden;
padding: 20px;
}
#slider-container .btn {
position: absolute;
top: calc(50% - 30px);
height: 15px;
width: 15px;
border-left: 8px solid #696969;
border-top: 8px solid #696969;
cursor: pointer;
}
#slider-container .btn:hover {
transform: scale(1.2);
}
#slider-container .btn.inactive {
border-color: #282828
}
#slider-container .btn:first-of-type {
transform: rotate(-45deg);
left: 10px
}
#slider-container .btn:last-of-type {
transform: rotate(135deg);
right: 10px;
}
#slider-container #slider {
display: flex;
width: 1000%;
height: 100%;
transition: all .5s;
}
#slider-container #slider .slide {
height: 90%;
margin: auto 10px;
background-color: #b5b5b5;
border-radius: 5px;
box-shadow: 2px 2px 4px 2px white, -2px -2px 4px 2px white;
display: grid;
place-items: center;
}
#slider-container #slider .slide span {
color: white;
font-size: 60px;
}
@media only screen and (min-width: 1100px) {
#slider-container #slider .slide {
width: calc(2.5% - 20px);
}
}
@media only screen and (max-width: 1100px) {
#slider-container #slider .slide {
width: calc(3.3333333% - 20px);
}
}
@media only screen and (max-width: 900px) {
#slider-container #slider .slide {
width: calc(5% - 20px);
}
}
@media only screen and (max-width: 550px) {
#slider-container #slider .slide {
width: calc(10% - 20px);
}
}