Skip to content

Instantly share code, notes, and snippets.

@sidd
Created Sep 2, 2022
Embed
What would you like to do?
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