mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-10 14:46:54 +08:00
20 lines
363 B
JavaScript
20 lines
363 B
JavaScript
import React, { FC } from "react";
|
|
import { motion } from "framer-motion";
|
|
|
|
const Show = ({ children, delay }) => {
|
|
return (
|
|
<motion.div
|
|
initial={{ y: 10, opacity: 0 }}
|
|
animate={{ y: 0, opacity: 1 }}
|
|
transition={{
|
|
duration: 0.4,
|
|
delay: delay,
|
|
}}
|
|
>
|
|
{children}
|
|
</motion.div>
|
|
);
|
|
};
|
|
|
|
export default Show;
|