Skip to content

Commit

Permalink
Animated arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Owez committed Dec 10, 2023
1 parent 250635d commit 2658e1f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions sass/index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$tagline-colour:#c4c4c4;
$tagline-colour: #c4c4c4;

// Central hero content
#hero {
Expand Down Expand Up @@ -39,7 +39,7 @@ $tagline-colour:#c4c4c4;
background-position: top center;

nav {
background-color: rgba(8,8,22,0.5);
background-color: rgba(8, 8, 22, 0.8);
}
}

Expand All @@ -48,6 +48,18 @@ $tagline-colour:#c4c4c4;
height: 5rem;
text-align: center;
color: $tagline-colour;
animation: action 1s infinite alternate;
}

// Up-down animation keyframes for arrow
@keyframes action {
0% {
transform: translateY(0);
}

100% {
transform: translateY(-10px);
}
}

// Content
Expand Down

0 comments on commit 2658e1f

Please sign in to comment.