taskflow-frontend / components /AnimatedPageWrapper.tsx
Tahasaif3's picture
'changes'
5e870e6
raw
history blame contribute delete
425 Bytes
'use client';
import { motion } from 'framer-motion';
interface AnimatedPageWrapperProps {
children: React.ReactNode;
}
export function AnimatedPageWrapper({ children }: AnimatedPageWrapperProps) {
return (
<motion.div
initial={{ opacity: 0, y: 20 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -20 }}
transition={{ duration: 0.3 }}
>
{children}
</motion.div>
);
}