svgl/animations/transitions.js

24 lines
392 B
JavaScript
Raw Normal View History

2022-03-03 14:48:37 +00:00
import React from "react";
import { motion } from "framer-motion";
2022-04-10 18:42:18 +01:00
const Transitions = ({ children }) => {
2022-03-03 14:48:37 +00:00
return (
<motion.div
initial="initial"
animate="animate"
variants={{
initial: {
opacity: 0,
},
animate: {
opacity: 1,
},
}}
>
{children}
</motion.div>
);
};
export default Transitions;