fixed animation for mobile nav
All checks were successful
Deploy Jody's App / build-and-deploy (push) Successful in 15s
All checks were successful
Deploy Jody's App / build-and-deploy (push) Successful in 15s
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -31,4 +31,3 @@ Thumbs.db
|
|||||||
# package-lock.json
|
# package-lock.json
|
||||||
# pnpm-lock.yamlw
|
# pnpm-lock.yamlw
|
||||||
|
|
||||||
.gitea/
|
|
||||||
@@ -71,8 +71,10 @@ export function Navbar({ onNav }: { onNav: (id: string) => void }) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
className={`md:hidden transition-[max-height] duration-300 ${
|
className={`md:hidden overflow-hidden transition-[max-height,opacity,transform] duration-300 ease-out ${
|
||||||
open ? "max-h-96 overflow-visible" : "max-h-0 overflow-hidden"
|
open
|
||||||
|
? "max-h-96 opacity-100 translate-y-0"
|
||||||
|
: "max-h-0 opacity-0 -translate-y-2 pointer-events-none"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div className="space-y-2 border-t border-secondary bg-bg px-4 py-3">
|
<div className="space-y-2 border-t border-secondary bg-bg px-4 py-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user