diff --git a/src/app/globals.css b/src/app/globals.css index 7d20302..0a8ba04 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -76,17 +76,29 @@ body { opacity: 0; } } -@keyframes slide-down { - 0% { + +@keyframes slideDown { + from { transform: translateY(-100%); opacity: 0; } - 100% { + to { transform: translateY(0); opacity: 1; } } +@keyframes slideUp { + from { + transform: translateY(0); + opacity: 1; + } + to { + transform: translateY(-100%); + opacity: 0; + } +} + .modal-enter { animation: slide-down 0.2s ease-out; } @@ -95,7 +107,13 @@ body { animation: slide-up 0.2s ease-in; } +.modal-slide-down { + animation: slideDown 0.3s ease-out forwards; +} +.modal-slide-up { + animation: slideUp 0.3s ease-out forwards; +} /* Hovering card */ /* Ensure the card container is positioned relatively for absolute positioning */ diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 46c717c..fb9d188 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -7,13 +7,13 @@ import Link from "next/link"; export default function Footer() { return (