-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathstyle.css
122 lines (99 loc) · 1.96 KB
/
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
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
html, body {
margin: 0;
padding: 0;
}
#main {
position: fixed;
height: 200%;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
.hero-overlay {
height: 50%;
background: url("./hero.jpg")
}
nav#timeline {
position: relative;
left: 0%; /* Set left explicitly to access via .style.left in JS */
bottom: 0%;
height: 100%;
width: 100%;
}
/* Treating the panels as an unstyled, ordered list */
nav#timeline ol {
display: inline-block;
list-style: none;
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
nav#timeline li {
position: absolute; /* Absolute positioning to enable JS animation via style.left */
height: 100%;
width: 1920px; /* Width of individual backgrounds */
}
nav#timeline li, .description {
-webkit-transition: 300ms ease;
}
/* Applied to the active panel */
nav#timeline li:hover {
-webkit-filter: saturate(0);
}
nav#timeline li:hover .description {
color: #CCC;
-webkit-transform: translateX(25px);
}
/* Applied to the active panel and all to the left */
.slideLeft{
-webkit-transform: translateX(-25px);
}
/* Applied to the active panel and all to the right */
.slideRight {
-webkit-transform: translateX(25px);
}
.description {
position: relative;
text-align: center;
width: 25em;
padding-top: 15%;
font-family: 'Open Sans', sans-serif;
}
.description h2 {
text-transform: uppercase;
font-weight: 700;
}
.description span {
font-weight: 400;
}
/* Initial positioning of slides: Note that we could use
hue-rotate instead of images, but that is not performant. */
li#zero {
left: calc(25em * 0);
background: url("./zero.jpg");
}
li#one {
left: calc(25em * 1);
background: url("./one.jpg");
}
li#two {
left: calc(25em * 2);
background: url("./two.jpg");
}
li#three {
left: calc(25em * 3);
background: url("./three.jpg");
}
li#four {
left: calc(25em * 4);
background: url("./four.jpg");
}
li#five {
left: calc(25em * 5);
background: url("./five.jpg");
}
li#six {
left: calc(25em * 6);
background: url("./six.jpg");
}