mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-11 02:33:10 +08:00
Refactor Accordion motion properties
Updated Accordion motion properties for better animation effects.
This commit is contained in:
@@ -314,11 +314,10 @@ export function ExpandingCard({ title, body }: { title: string; body: string })
|
||||
|
||||
```tsx
|
||||
<motion.div
|
||||
animate={{
|
||||
height: open ? "auto" : 0,
|
||||
overflow: "hidden",
|
||||
}}
|
||||
transition={{
|
||||
initial={false}
|
||||
animate={{ opacity: open ? 1 : 0, scaleY: open ? 1 : 0 }}
|
||||
style={{ transformOrigin: "top", overflow: "hidden" }}
|
||||
transition={{
|
||||
duration: motionTokens.duration.normal,
|
||||
ease: motionTokens.easing.smooth,
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user