File size: 445 Bytes
c35213b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 'use client';
import { motion } from 'framer-motion';
import { ReactNode } from 'react';
export default function FadeIn({ children }: { children: ReactNode }) {
return (
<motion.div
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5, ease: [0.22, 1, 0.36, 1] }}
className="flex-1 overflow-hidden flex flex-col w-full h-full"
>
{children}
</motion.div>
);
}
|