mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-14 04:01:30 +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
|
```tsx
|
||||||
<motion.div
|
<motion.div
|
||||||
animate={{
|
initial={false}
|
||||||
height: open ? "auto" : 0,
|
animate={{ opacity: open ? 1 : 0, scaleY: open ? 1 : 0 }}
|
||||||
overflow: "hidden",
|
style={{ transformOrigin: "top", overflow: "hidden" }}
|
||||||
}}
|
transition={{
|
||||||
transition={{
|
|
||||||
duration: motionTokens.duration.normal,
|
duration: motionTokens.duration.normal,
|
||||||
ease: motionTokens.easing.smooth,
|
ease: motionTokens.easing.smooth,
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user