Add subtle intro animation to elements and fix z-index stacking issues

This commit is contained in:
Michael Rose 2016-04-12 10:00:32 -04:00
parent 1dbc92d08c
commit 944629b422
7 changed files with 32 additions and 6 deletions

View file

@ -0,0 +1,14 @@
/* ==========================================================================
ANIMATIONS
========================================================================== */
@keyframes intro {
0% {
opacity: 0;
transform: translate3d(0, -25px, 0)
}
100% {
opacity: 1;
transform: translate3d(0, 0, 0)
}
}

View file

@ -8,6 +8,8 @@
margin-top: 3em; margin-top: 3em;
padding: 0 2em 3em; padding: 0 2em 3em;
color: mix(#fff, $gray, 25%); color: mix(#fff, $gray, 25%);
animation: intro 0.3s both;
animation-delay: 0.45s;
@include breakpoint($large) { @include breakpoint($large) {
padding-left: 1em; padding-left: 1em;

View file

@ -3,7 +3,11 @@
========================================================================== */ ========================================================================== */
.masthead { .masthead {
position: relative;
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
animation: intro 0.3s both;
animation-delay: 0.15s;
z-index: 20;
&__inner-wrap { &__inner-wrap {
@include container; @include container;

View file

@ -9,11 +9,14 @@
.breadcrumbs { .breadcrumbs {
@include container; @include container;
@include clearfix; @include clearfix;
position: relative;
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
padding-left: 2em; padding-left: 2em;
padding-right: 2em; padding-right: 2em;
font-family: $sans-serif; font-family: $sans-serif;
animation: intro 0.3s both;
animation-delay: 0.30s;
@include breakpoint($large) { @include breakpoint($large) {
padding-left: 1em; padding-left: 1em;

View file

@ -9,7 +9,8 @@
margin-top: 2em; margin-top: 2em;
padding-left: 2em; padding-left: 2em;
padding-right: 2em; padding-right: 2em;
z-index: 0; animation: intro 0.3s both;
animation-delay: 0.35s;
@include breakpoint($large) { @include breakpoint($large) {
padding-left: 1em; padding-left: 1em;
@ -45,6 +46,7 @@
.page__title { .page__title {
margin-top: 0; margin-top: 0;
line-height: 1; line-height: 1;
& + .page__meta { & + .page__meta {
margin-top: -0.5em; margin-top: -0.5em;
} }
@ -112,6 +114,8 @@
position: relative; position: relative;
margin-bottom: 2em; margin-bottom: 2em;
@include clearfix; @include clearfix;
animation: intro 0.3s both;
animation-delay: 0.25s;
&--overlay { &--overlay {
position: relative; position: relative;
@ -122,6 +126,8 @@
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
animation: intro 0.3s both;
animation-delay: 0.25s;
.wrapper { .wrapper {
padding-left: 2em; padding-left: 2em;
@ -143,10 +149,6 @@
font-size: $type-size-1; font-size: $type-size-1;
} }
} }
.page__lead {
font-weight: bold;
}
} }
} }

View file

@ -16,6 +16,7 @@
@import "base"; @import "base";
@import "utilities"; @import "utilities";
@import "animations";
@import "tables"; @import "tables";
@import "buttons"; @import "buttons";
@import "notices"; @import "notices";

File diff suppressed because one or more lines are too long