-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcats.css
More file actions
106 lines (91 loc) · 1.7 KB
/
Copy pathcats.css
File metadata and controls
106 lines (91 loc) · 1.7 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
body {
margin: 0;
}
/* Slideshow container */
#slideshow-container {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: black;
}
#carousel {
width: 100vh;
height: 100vh;
background-size: contain;
background-position: center;
background-repeat: no-repeat;
}
/* Next & previous buttons */
.arrow {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
color: blue;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}
/* Position the "next button" to the right */
#next {
right: 0;
border-radius: 3px 0 0 3px;
}
#prev {
left: 0;
border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.arrow:hover {
background-color: rgba(0, 0, 0, 0.8);
}
/* Fading animation */
.fade {
-webkit-animation-name: fade;
-webkit-animation-duration: 1.5s;
animation-name: fade;
animation-duration: 1.5s;
}
.slidein {
animation-duration: 1s;
animation-name: slidein;
animation-direction: left;
}
.slideout {
animation-duration: .5s;
animation-name: slideout;
animation-direction: left;
}
@keyframes slidein {
from {
translate: 20vw 0;
opacity: 0;
}
to {
translate: 0 0;
opacity: 1;
}
}
@keyframes slideout {
from {
translate: 0 0;
opacity: 1;
}
to {
translate: -20vw 0;
opacity: 0;
}
}
@-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}
@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}