svgl/animations/show.js

20 lines
363 B
JavaScript
Raw Normal View History

2022-01-17 06:27:55 +08:00
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;