-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
80 lines (68 loc) · 1.22 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
.container {
position: relative;
width: 80%;
max-width: 900px;
margin: 2rem auto;
}
.img-container {
display: flex;
flex-direction: row;
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
border: 2px solid #aaa;
border-radius: 5px;
}
.img-container::-webkit-scrollbar {
display: none;
}
.img-container img {
width: 100%;
scroll-snap-align: start;
margin: 0 2rem;
position: relative;
/* transition: 200ms transform; */
/* transform: scale(0.5); */
}
.img-container img.active-img {
/* transform: scale(1); */
}
.circles {
position: absolute;
bottom: 2rem;
left: 50%;
transform: translateX(-50%);
display: flex;
flex-direction: row;
}
.circles > span {
margin-left: 1rem;
border: 1px solid #ccc;
width: 20px;
height: 20px;
border-radius: 50%;
}
.active-circle {
background: #ddd;
}
.left,
.right {
position: absolute;
top: 50%;
transform: translateY(-50%);
color: white;
font-size: 2rem;
cursor: pointer;
text-shadow: 0px 2px 0px black;
font-weight: bolder;
}
.left:hover,
.right:hover {
color: #ccc;
}
.left {
left: 1rem;
}
.right {
right: 1rem;
}