20 lines
390 B
TypeScript
20 lines
390 B
TypeScript
'use client';
|
|
|
|
import { m } from 'framer-motion';
|
|
|
|
export default function Template({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<m.div
|
|
initial={{ opacity: 0, y: 20 }}
|
|
animate={{ opacity: 1, y: 0 }}
|
|
transition={{
|
|
duration: 0.7,
|
|
ease: [0.16, 1, 0.3, 1],
|
|
}}
|
|
className="w-full h-full"
|
|
>
|
|
{children}
|
|
</m.div>
|
|
);
|
|
}
|