MathiasKandelborg/TRUE-framework

View on GitHub
components/UI/Animation/PageAnimation.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import { pageVariants } from '@util/animations/variants'
import { motion } from 'framer-motion'

interface IPageAnimation {
  layoutID?: string
}

const PageAnimation: React.FC<IPageAnimation> = ({ children }) => (
  <motion.div
    // layoutId={layoutID}
    variants={pageVariants}
    initial="exit"
    animate="enter"
    exit="exit"
    layout>
    {children}
  </motion.div>
)

export default PageAnimation