svgl/animations/transitions.js
2022-04-10 18:42:18 +01:00

24 lines
392 B
JavaScript

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