Skip to content

Commit

Permalink
chore: add enter-animation for banner
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengp committed Jul 29, 2023
1 parent 5a77074 commit 89b7e5f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .vitepress/theme/components/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ const hideBanner = () => {
color: #fff;
display: flex;
justify-content: space-between;
animation: slide-enter-inverse 1s both 1;
animation-delay: 0.3s;
}
.text {
Expand Down Expand Up @@ -97,4 +99,16 @@ svg {
height: 20px;
margin-left: 8px;
}
@keyframes slide-enter-inverse {
0% {
transform: translateY(-10px);
opacity: 0;
}
to {
transform: translateY(0px);
opacity: 100;
}
}
</style>

0 comments on commit 89b7e5f

Please sign in to comment.