fix: animation consistency (#9)

* feat: basic dark mode

* feat: theme toggle

* Completed dark mode and about page changes

* Fix progressive blur on dark mode

* feat: dynadark tailwind plugin for dark detection

* feat: fix "supported formats" text

* fix: animation consistency

* fix: page transition origin

---------

Co-authored-by: Realmy <163438634+RealmyTheMan@users.noreply.github.com>
This commit is contained in:
nullptr 2024-11-13 20:22:57 +00:00 committed by GitHub
parent 6cb64d1b8e
commit 8c3a46f11c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 1 deletions

View File

@ -55,7 +55,7 @@ export const blur = (
origin: Combination< origin: Combination<
"top" | "bottom" | "left" | "right" | "center", "top" | "bottom" | "left" | "right" | "center",
"top" | "bottom" | "left" | "right" | "center" "top" | "bottom" | "left" | "right" | "center"
>; > & {};
}> }>
| undefined, | undefined,
dir: { dir: {

View File

@ -130,10 +130,15 @@
start: !$shouldGoBack ? 250 : -250, start: !$shouldGoBack ? 250 : -250,
end: 0, end: 0,
}, },
y: {
start: 100,
end: 0,
},
scale: { scale: {
start: 0.75, start: 0.75,
end: 1, end: 1,
}, },
origin: "top center",
}} }}
out:blur={{ out:blur={{
duration, duration,
@ -143,10 +148,15 @@
start: 0, start: 0,
end: !$shouldGoBack ? -250 : 250, end: !$shouldGoBack ? -250 : 250,
}, },
y: {
start: 0,
end: 100,
},
scale: { scale: {
start: 1, start: 1,
end: 0.75, end: 0.75,
}, },
origin: "top center",
}} }}
> >
<div class="pb-20"> <div class="pb-20">