svgl/animations/show.js
2022-01-16 22:27:55 +00:00

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;