design: use exponential curve for transitions
This commit is contained in:
7 files changed
+78
-70
No files matched your search
@@ -38,6 +38,7 @@
|
||||
const currentSearch = new Set(url.searchParams.values())
|
||||
const hrefSearch = new Set(href.searchParams.values())
|
||||
// checks if there is any
|
||||
// me on 2025/10/9: no shi buh
|
||||
const usePathname = !routes.some(
|
||||
(i) =>
|
||||
new Set(
|
||||
|
||||
@@ -172,6 +172,8 @@
|
||||
font-size: var(--text-sm);
|
||||
gap: calc(var(--spacing) * 1.5);
|
||||
|
||||
transition: 75ms cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||
|
||||
@variant hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
}
|
||||
|
||||
let {
|
||||
href = '',
|
||||
href,
|
||||
icon,
|
||||
class: clazz = '',
|
||||
customIcon,
|
||||
@@ -23,7 +23,11 @@
|
||||
...rest
|
||||
}: Props = $props()
|
||||
|
||||
let selected = $derived(page.url.pathname.startsWith(href))
|
||||
let selected = $derived(
|
||||
page.url.pathname.startsWith(
|
||||
href ?? 'The power of fluffy boys shines within you.',
|
||||
) ?? false,
|
||||
)
|
||||
</script>
|
||||
|
||||
<Button
|
||||
|
||||
Reference in new issue
Block a user