-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCarouselCss.css
More file actions
73 lines (61 loc) · 1.07 KB
/
CarouselCss.css
File metadata and controls
73 lines (61 loc) · 1.07 KB
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
.data-carousel {
width: 900px;
height: 600px;
margin-left: auto;
margin-right: auto;
overflow: hidden;
text-align: center;
}
.data-images {
width: 4500px;
height: 600px;
position: relative;
-webkit-transition: left 2s;
scroll-behavior: smooth;
display: flex;
}
.data-image {
float: left;
margin: 0;
padding: 0;
border-radius: 20px;
}
.image-button {
top: -20px;
position: relative;
}
.switch-button {
display: inline-flex;
height: 10px;
width: 10px;
border-radius: 5px;
background-color: whitesmoke;
}
#image-1:target~ .data-images {
left: 0;
}
#image-2:target~ .data-images {
left: -900px;
}
#image-3:target~ .data-images {
left: -1800px;
}
#image-4:target~ .data-images {
left: -2700px;
}
#image-5:target~ .data-images {
left: -3600px;
}
html,
body {
height: 100%;
overflow: auto;
margin-top: -2em;
position:relative;
}
body {
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(to top, white, skyblue);
}