Skip to content

Commit

Permalink
Add keyfames for animated traffic patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
cdonohue committed Jan 12, 2024
1 parent c5002c9 commit 02e9eb8
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,63 @@ body {
opacity: 0;
}
}

@keyframes moveSouth {
0% {
opacity: 0;
transform: translateY(-100%);
}
100% {
opacity: 1;
transform: translateY(100%);
}
}

@keyframes moveNorth {
0% {
opacity: 0;
transform: translateY(100%);
}
100% {
opacity: 1;
transform: translateY(-100%);
}
}

@keyframes moveEast {
0% {
opacity: 0;
transform: translateX(-100%);
}
100% {
opacity: 1;
transform: translateX(100%);
}
}

@keyframes moveWest {
0% {
opacity: 0;
transform: translateX(100%);
}
100% {
opacity: 1;
transform: translateX(-100%);
}
}

.animate-north {
animation: moveNorth 1s ease-in infinite;
}

.animate-south {
animation: moveSouth 1s ease-in infinite;
}

.animate-east {
animation: moveEast 1s ease-in infinite;
}

.animate-west {
animation: moveWest 1s ease-in infinite;
}

0 comments on commit 02e9eb8

Please sign in to comment.