-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphoto.css
More file actions
58 lines (50 loc) · 883 Bytes
/
Copy pathphoto.css
File metadata and controls
58 lines (50 loc) · 883 Bytes
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
/* photography carousel */
.carousel {
position: relative;
width: 100%;
max-width: 600px;
margin: 0 auto;
aspect-ratio: 3 / 2;
overflow: hidden;
}
.carousel-image {
width: 100%;
height: 100%;
display: none;
border-radius: 8px;
object-fit: contain;
}
.carousel-image.active {
display: block;
}
.carousel-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
padding: 10px 13px;
font-size: 14px;
cursor: pointer;
border-radius: 4px;
transition: background-color 0.3s;
}
.carousel-btn:hover {
background-color: rgba(0, 0, 0, 0.5);
}
.carousel-btn.prev {
left: 10px;
}
.carousel-btn.next {
right: 10px;
}
.carousel-info {
padding: 20px;
background-color: #f5f5f5;
border-radius: 8px;
margin-top: 20px;
}
.carousel-info h3 {
margin-top: 0;
}