-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.css
92 lines (81 loc) · 1.37 KB
/
app.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
80
81
82
83
84
85
86
87
88
89
90
91
92
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to top, lightseagreen, rgb(32, 95, 178));
}
.carousel {
width: 500px;
height: 500px;
position: relative;
background: lightblue;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
position: absolute;
top: 0;
left: 0;
opacity: 0;
transition: opacity 0.5s ease-in;
}
.prev-next {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.prev-next #prev,
.prev-next #next {
background: lightcoral;
border: none;
outline: none;
cursor: pointer;
width: 50px;
height: 50px;
border-radius: 50%;
color: #fff;
font-size: 1.2rem;
transition: background 0.5s ease-in-out;
}
.prev-next #prev:hover,
.prev-next #next:hover {
background: lightsalmon;
}
.dots {
position: absolute;
bottom: -40px;
left: 50%;
transform: translateX(-50%);
display: flex;
}
.dots .dot {
width: 20px;
height: 20px;
background: #acacac;
border-radius: 50%;
margin: 0 10px;
cursor: pointer;
transition: background 0.5s ease-in-out;
}
.dots .dot:hover {
background: lightcoral;
}
.dot.dot-active {
background: #222;
}
.active {
opacity: 1;
}