blob: 21589ce294080d2d806c15034cd34c57a0c894c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
"use client";
import { motion } from "motion/react";
export default ({ children, props }) => {
const { duration = 1, delay = 0 } = props || {};
return (
<motion.div
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration, delay }}
>
{children}
</motion.div>
);
};
|