Added animations module

This commit is contained in:
2026-01-21 12:11:55 +01:00
parent 34f0d40780
commit ede059581a
2 changed files with 23 additions and 36 deletions
+22
View File
@@ -0,0 +1,22 @@
import { Variant } from "framer-motion";
type AnimationVariants = Record<string, Variant>;
export const fadeInUp: AnimationVariants = {
hidden: { opacity: 0, y: 30 },
visible: {
opacity: 1,
y: 0,
transition: { duration: 0.6, ease: "easeOut" },
},
};
export const staggerContainer: AnimationVariants = {
hidden: { opacity: 0 },
visible: {
opacity: 1,
transition: {
staggerChildren: 0.15,
},
},
};