forked from iamakash-06/UID-Project-Final
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimg_carousel.css
More file actions
40 lines (40 loc) · 753 Bytes
/
img_carousel.css
File metadata and controls
40 lines (40 loc) · 753 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
.carousel {
align-items: center;
display: flex;
margin: 2rem auto;
overflow: hidden;
position: relative;
width: 550px;
}
.carousel__images {
display: flex;
transform: translateX(0);
transition: transform 0.25s;
}
.carousel__images img {
border-radius: 5px;
}
.carousel__button {
background: teal;
border: 0;
border-radius: 50%;
color: white;
cursor: pointer;
font-size: 1.5rem;
font-weight: bold;
height: 3rem;
opacity: 0.25;
position: absolute;
transition: opacity 0.25s;
width: 3rem;
z-index: 1;
}
.carousel__button.previous {
left: 5px;
}
.carousel__button.next {
right: 5px;
}
.carousel__button:hover {
opacity: 0.5;
}