Skip to content

Commit

Permalink
fix: don't auto-animate children of box
Browse files Browse the repository at this point in the history
  • Loading branch information
vacekj committed Jul 19, 2024
1 parent 726fa4d commit 13243f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/ui/components/ui/box/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ export const Box = ({
</div>
)}

{children && (
<motion.div layout className='origin-top' animate={{ scaleY: 1 }} exit={{ scaleY: 0 }}>
{children}
</motion.div>
)}
{children && <motion.div className='origin-top'>{children}</motion.div>}
</motion.div>
);
};

0 comments on commit 13243f8

Please sign in to comment.