Skip to content

Commit

Permalink
Desktop nav-bar animatio fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Musab-Hassan committed Aug 26, 2022
1 parent 9e885c9 commit 275a709
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ $: mobileTransitionSwitcher =
tick: t => {
let reversedT = 1 - t;
out.tick(reversedT);
if (t == 1) out.tick(1);
}
}
};
Expand Down Expand Up @@ -158,7 +160,7 @@ function introAnimations() {
text-transform: uppercase
font-size: 2vh
letter-spacing: 0.2vh
display: inline-block
display: inline-flex
&.mobile
display: none
Expand Down

0 comments on commit 275a709

Please sign in to comment.