-
-
Save sidd/49d9b028653dd7978d8c8042ccd00d7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const variants = { | |
initial: { | |
height: 0, | |
}, | |
animate: { | |
height: 'auto', | |
}, | |
} | |
// ... | |
return ( | |
<motion.div | |
className="z-50 bg-eggplant fixed inset-0 text-white p-6 overflow-auto" | |
initial="initial" | |
animate="animate" | |
exit="initial" | |
variants={variants} | |
transition={{ duration: 0.5 }} | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment