| '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> | |
| ); | |
| } | |