-
Notifications
You must be signed in to change notification settings - Fork 0
/
scroll.css
127 lines (127 loc) · 2.16 KB
/
scroll.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
123
124
125
126
127
/* default / demo page */
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
min-height: 1280px;
font-weight: 300;
color: #2a2a2a;
}
p,
h1,
h2,
h3,
h4,
a {
margin: 0;
font-weight: 300;
line-break: loose;
}
a,
a:visited,
a:hover {
color: #f30;
text-decoration: none;
border-bottom: 1px solid currentColor;
}
#intro {
max-width: 40rem;
margin: 1rem auto;
text-align: justify;
}
.intro__overline {
font-size: 1.4rem;
}
.intro__hed {
font-size: 1.4rem;
margin: 1.5rem auto;
text-transform: uppercase;
font-weight: 900;
letter-spacing: 0.05em;
}
.intro__dek {
font-size: 1.4rem;
}
/* demo */
#intro {
margin-bottom: 40px;
}
#outro {
height: 640px;
}
/* scrollama */
#scroll {
position: relative;
border-top: 1px dashed #000;
border-bottom: 1px dashed #000;
display: flex;
}
.scroll__graphic {
position: absolute;
top: 0;
left: 0;
bottom: auto;
background-color: #fff;
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.scroll__graphic.is-fixed {
position: fixed;
}
.scroll__graphic.is-bottom {
bottom: 0;
top: auto;
}
.chart {
position: absolute;
right: 1rem;
top: 50%;
-moz-transform: translateY(-50%);
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.chart p {
text-align: center;
padding: 1rem;
position: absolute;
top: 50%;
left: 50%;
-moz-transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
font-size: 8rem;
font-weight: 900;
color: #666;
}
.scroll__text {
position: relative;
padding: 0 1rem;
max-width: 30rem;
width: 33%;
}
.step {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.step p{
text-align: center;
padding: 1rem;
font-size: 1.5rem;
color: #d3d3d3;
transition: color .75s, font-weight .25s;
font-weight: normal;
}
.step.is-active p{
/* background-color: lightgoldenrodyellow;*/
color: black;
font-weight: 500;
}