-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
62 lines (56 loc) · 1.03 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
61
62
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
background-color: #090909;
display: flex;
align-items: center;
justify-content: center;
}
.carousel-wrapper {
width: 100%;
max-width: 900px;
aspect-ratio: 16/9;
overflow: hidden;
margin: 0 2rem;
position: relative;
}
.slide {
width: 100%;
height: 100%;
border-radius: 12px;
position: absolute;
transition: transform 300ms ease-out;
}
.slide img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: inherit;
}
.carousel-wrapper .btn {
font-size: 2rem;
background: rgba(0, 0, 0, 0.7);
color: #ffffff;
padding: 8px 10px;
border-radius: 50%;
border: none;
margin: 10px;
position: absolute;
transform: translateY(-50%);
cursor: pointer;
}
.carousel-wrapper .btn:hover {
background: rgba(0, 0, 0, 1);
}
.btn.previous {
top: 50%;
left: 0;
}
.btn.next {
top: 50%;
right: 0;
}