scrollama
Version:
Lightweight scrollytelling library using IntersectionObserver
130 lines (110 loc) • 1.85 kB
CSS
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
min-height: 1280px;
color: #3b3b3b;
font-size: 24px;
}
p,
h1,
h2,
h3,
h4,
a {
margin: 0;
font-weight: 400;
}
a,
a:visited,
a:hover {
color: teal;
text-decoration: none;
border-bottom: 2px solid currentColor;
}
nav {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: baseline;
-ms-flex-align: baseline;
align-items: baseline;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
background: #f3f3f3;
padding: 1rem;
padding-right: 5rem;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.nav__examples {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: baseline;
-ms-flex-align: baseline;
align-items: baseline;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-top: 1rem;
}
.nav__examples > * {
margin-right: 0.5rem;
}
#intro {
max-width: 40rem;
margin: 1rem auto;
text-align: center;
}
.intro__hed {
font-size: 2em;
margin: 2rem auto 0.5rem auto;
}
.intro__dek {
color: #8a8a8a;
}
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0);
}
20%,
60% {
transform: rotate(-25deg);
}
40%,
80% {
transform: rotate(10deg);
}
}
@media (max-width: 500px) {
.github-corner:hover .octo-arm {
animation: none;
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out;
}
}
#intro {
margin-bottom: 320px;
}
#outro {
height: 640px;
}
@media (min-width: 840px) {
.nav__examples {
margin-top: 0;
margin-left: 2rem;
}
}