svgl/animations/transitions.js
2022-03-03 14:48:37 +00:00

25 lines
413 B
JavaScript

import React from "react";
import { motion } from "framer-motion";
const Transitions = ({ key, children }) => {
return (
<motion.div
key={key}
initial="initial"
animate="animate"
variants={{
initial: {
opacity: 0,
},
animate: {
opacity: 1,
},
}}
>
{children}
</motion.div>
);
};
export default Transitions;