Skip to content

Commit

Permalink
subtle caption animation
Browse files Browse the repository at this point in the history
move the caption around a bit to try and lessen screen burn
  • Loading branch information
kjell committed Mar 21, 2019
1 parent 0551617 commit 90f8963
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
max-width: 43%;
line-height: 3.7em;
text-align: right;

animation-name: moveText;
animation-duration: 99s;
animation-timing-function: linear;
animation-iteration-count: infinite;

}

.caption {
Expand All @@ -55,6 +61,24 @@
font-family: MiaGrotesk-Bold;
}

@keyframes moveText {
from {
transform: translate3d(0, 0, 0);
}
23% {
transform: translate3d(0, -3em, 0);
}
47% {
transform: translate3d(-3em, -3em, 0);
}
77% {
transform: translate3d(-3em, 0, 0);
}
to {
transform: translate3d(0, 0, 0);
}
}

#timer {
position: absolute;
bottom: 0.5em;
Expand Down

0 comments on commit 90f8963

Please sign in to comment.