We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c70324 commit 02bc051Copy full SHA for 02bc051
src/islands/svelte/hamburger-button.svelte
@@ -1,7 +1,8 @@
1
<script lang="ts">
2
- const { links }: { links: { href: string; title: string }[] } = $props();
3
-
4
import { Popover } from "bits-ui";
+ import { fade } from "svelte/transition";
+
5
+ const { links }: { links: { href: string; title: string }[] } = $props();
6
</script>
7
8
<Popover.Root>
@@ -29,7 +30,10 @@
29
30
</Popover.Trigger>
31
32
<Popover.Content align="end" side="bottom" strategy="fixed">
- <div class="w-[100vw] bg-white transition-opacity duration-300 lg:hidden">
33
+ <div
34
+ transition:fade|global={{ duration: 70 }}
35
+ class="w-[100vw] bg-white transition-opacity duration-300 lg:hidden"
36
+ >
37
<ul>
38
{#each links as link}
39
<li class="hover:bg-gray-200">
0 commit comments