tahamajs/IE / Projects /front /src /components /common /RouteTransition.tsx
tahamajs's picture
download
raw
555 Bytes
// src/components/common/RouteTransition.tsx
import { motion } from "framer-motion";
const pageVariants = {
initial: { opacity: 0, y: 10 },
in: { opacity: 1, y: 0 },
out: { opacity: 0, y: -10 },
};
const pageTransition = { duration: 0.3, ease: "easeInOut" as const };
export function RouteTransition({ children }: { children: React.ReactNode }) {
return (
<motion.div
initial="initial"
animate="in"
exit="out"
variants={pageVariants}
transition={pageTransition}
>
{children}
</motion.div>
);
}

Xet Storage Details

Size:
555 Bytes
·
Xet hash:
bc56e75ce04d4bc430cc65b5573a5c1737d2a2391557c5d7ce6e3fb163dab63b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.