mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-13 08:46:56 +08:00
24 lines
392 B
JavaScript
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;
|