Skip to content

Commit

Permalink
🚚 move animation to layout
Browse files Browse the repository at this point in the history
  • Loading branch information
dvjn committed Jun 16, 2024
1 parent 1e4f91a commit e568159
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,4 @@ const { withGradient = false } = Astro.props;
font-size: var(--text-base);
}
}

@keyframes gradient-animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
</style>
12 changes: 12 additions & 0 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,18 @@ const { title } = Astro.props as Props;
animation: gradient-animation 120s ease infinite;
}

@keyframes gradient-animation {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}

.preload * {
-webkit-transition: none !important;
-moz-transition: none !important;
Expand Down

0 comments on commit e568159

Please sign in to comment.