Added animations module
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user