This repository was archived by the owner on Jan 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
124 lines (102 loc) · 2.06 KB
/
index.css
File metadata and controls
124 lines (102 loc) · 2.06 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
* {
box-sizing: border-box;
}
:root, body {
margin: 0;
padding: 0;
background-color: black;
}
[data-slider-viewport] {
position: relative;
height: 100%;
width: 100%;
background-color: black;
}
[data-slide-wrapper] {
--slide-number: 1;
--dim-opacity: 0;
--content-display: none;
position: absolute;
top: 0;
width: 100%;
background-color: black;
display: none !important;
}
[data-slide-content] {
position: -webkit-sticky;
position: sticky;
top: 0;
min-height: 100vh;
max-height: 100vh;
height: 100vh;
width: 100%;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
background-color: black;
opacity: var(--dim-opacity);
}
[data-slide-wrapper].display {
display: initial !important;
}
[data-slide-wrapper]:first-child:before {
opacity: 0;
}
[data-slide-wrapper]:last-child {
display: initial !important;
}
[data-slide-wrapper] {
height: calc(var(--slide-number) * 100vh);
z-index: calc(1000 + (var(--slide-number) * -1));
}
[data-slide-wrapper]:target {
}
[data-slide-wrapper]:target + [data-slide-wrapper] [data-slide-content] {
background-image: none;
background-color: white;
}
[data-slide-caption-animation] {
opacity: .1;
transition: opacity .2s;
}
.active [data-slide-caption-animation] {
opacity: .1;
animation: caption-enter-animation 5s 1;
}
[data-slide-caption-animation]:hover {
opacity: 1;
}
@keyframes caption-enter-animation {
from {
opacity: .1;
}
10%, 90% {
opacity: 1;
}
to {
opacity: .1;
}
}
.slide-background {
position: absolute;
width: 100%;
height: 100%;
pointer-events: none;
object-fit: contain;
}
/* DEMO */
[data-slide-content] {
color: white;
display: flex;
flex-direction: column;
justify-content: flex-end;
text-align: center;
}
[data-slide-content] h1 {
font-family: sans-serif;
font-size: 4em;
}
[data-slide-content] p {
font-family: sans-serif;
font-size: 2em;
}