FEAT: Animated the navbar! Svelte is awesome asf
This commit is contained in:
parent
2709c7e9dc
commit
1e1e91bafd
@ -1,4 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
|
import { linear } from 'svelte/easing';
|
||||||
|
import { slide } from 'svelte/transition';
|
||||||
|
|
||||||
let isMobileMenuOpen = false;
|
let isMobileMenuOpen = false;
|
||||||
|
|
||||||
function toggleMobileMenu() {
|
function toggleMobileMenu() {
|
||||||
@ -81,6 +84,7 @@
|
|||||||
class="absolute top-full left-0 z-10 w-full bg-[#1b1b1c] md:hidden"
|
class="absolute top-full left-0 z-10 w-full bg-[#1b1b1c] md:hidden"
|
||||||
role="navigation"
|
role="navigation"
|
||||||
aria-label="Mobile Navigation"
|
aria-label="Mobile Navigation"
|
||||||
|
transition:slide={{ duration: 200, easing: linear }}
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/"
|
href="/"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user