after side

This commit is contained in:
tymur999
2024-10-19 20:28:42 -04:00
committed by Mark Goltsman
parent 386a13a896
commit 0b6ae7a5d9
2 changed files with 4 additions and 5 deletions

View File

@@ -41,10 +41,9 @@ export function MindMap() {
return ( return (
<motion.div style={containerStyles} <motion.div style={containerStyles}
initial={{ y: 500 }} initial={{ x: -500 }}
transition={{ duration: 0.2 }} animate={{ x: 0 }}
animate={{ y: 0 }} exit={{ x: -500 }}
exit={{ y: 500 }}
> >
<div style={innerContainerStyles}> <div style={innerContainerStyles}>
<div style={notesContainerStyles}> <div style={notesContainerStyles}>

View File

@@ -5,7 +5,7 @@ export function QuickFact(props: {setIndex: (index: number) => void}) {
initial={{ y: 500 }} initial={{ y: 500 }}
transition={{ duration: 0.2 }} transition={{ duration: 0.2 }}
animate={{ y: 0 }} animate={{ y: 0 }}
exit={{ y: 500 }} exit={{ x: 500 }}
onMouseDown={() => props.setIndex(3)} onMouseDown={() => props.setIndex(3)}
className="h-[100vh] w-full bg-cyan-500 absolute top-0 className="h-[100vh] w-full bg-cyan-500 absolute top-0
from-[#5ce1e6] to-[rgba(0,0,0,.6)] bg-gradient-to-b from-90%" from-[#5ce1e6] to-[rgba(0,0,0,.6)] bg-gradient-to-b from-90%"