Skip to content

Commit

Permalink
feat(layout): Natural animation to fade in (#133)
Browse files Browse the repository at this point in the history
Make the first introduction neat.
  • Loading branch information
5ouma authored Dec 17, 2024
1 parent 1aacaa9 commit f0b6511
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,16 @@ const { title, description, icon } = Astro.props;
</html>

<style>
@keyframes fade-in {
from {
opacity: 0;
transform: translateY(10%);
}
}

body {
background-color: var(--background);
animation: fade-in 1s;
}
</style>

Expand Down

0 comments on commit f0b6511

Please sign in to comment.