-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
60 lines (51 loc) · 872 Bytes
/
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
* {
box-sizing: border-box;
}
body {
margin: 0;
}
#carousel {
position: relative;
height: 600px;
overflow: hidden;
display: flex;
}
.kitty {
position: absolute;
top: 0;
left: 0;
height: 100%;
transform: translateX(100%);
}
.kitty img {
width: 100%;
height: 100%;
object-fit: cover;
}
.kitty.onscreen {
transform: translateX(0);
transition-duration: 2s;
}
.kitty.exit {
transform: translateX(-100%);
transition: transform 2s;
}
.dot {
border-radius: 50%;
height: 30px;
width: 30px;
border: solid 4px black;
margin: 0 10px;
cursor: pointer;
}
#nav {
display: flex;
justify-content: center;
position: absolute;
width: 100%;
top: 90%;
left: 0;
}
.dot.filled {
background: #ebedef;
}