Files
aso/frontend/dashboard/src/components/animate/variants/container.ts
2026-02-04 14:39:20 +07:00

29 lines
606 B
TypeScript

// ----------------------------------------------------------------------
export type Props = {
staggerIn?: number;
delayIn?: number;
staggerOut?: number;
};
export const varContainer = (props?: Props) => {
const staggerIn = props?.staggerIn || 0.05;
const delayIn = props?.staggerIn || 0.05;
const staggerOut = props?.staggerIn || 0.05;
return {
animate: {
transition: {
staggerChildren: staggerIn,
delayChildren: delayIn,
},
},
exit: {
transition: {
staggerChildren: staggerOut,
staggerDirection: -1,
},
},
};
};