Skip to content

Commit

Permalink
feat: add opacity transition to navbar open and close
Browse files Browse the repository at this point in the history
  • Loading branch information
okikio authored Oct 21, 2021
1 parent 27bb804 commit ba6b852
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/css/components/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@

@screen lt-md {
--height: 100vh;
transition: height ease-out 0.35s, transform ease-out 0.35s;
transition: height ease-out 0.35s, transform ease-out 0.35s, opacity ease 0.35s;
@apply flex-grow;
flex-basis: 100%;
overflow-y: hidden;
Expand All @@ -95,12 +95,12 @@
&.show {
height: 100%;
height: var(--height, 100vh);
@apply scale-100;
@apply scale-100 opacity-100;
}

&.collapse {
height: 0;
@apply scale-[0.8];
@apply scale-[0.8] opacity-0;
}
}
}
Expand Down

1 comment on commit ba6b852

@vercel
Copy link

@vercel vercel bot commented on ba6b852 Oct 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.