Update src/components/cardStack/CardStack.tsx

This commit is contained in:
2026-03-03 18:06:29 +00:00
parent af0526ea77
commit d14914eb43

View File

@@ -145,7 +145,7 @@ const CardStack = ({
);
}
// Auto-scroll carousel for 5+ items
// Auto-scroll carousel for 1+ items
if (mode === "auto") {
// Convert depth-3d to scale-rotate for carousel (doesn't support 3D)
const carouselAnimationType = animationType === "depth-3d" ? "scale-rotate" : animationType;
@@ -184,7 +184,7 @@ const CardStack = ({
);
}
// Button-controlled carousel for 5+ items
// Button-controlled carousel for 1+ items
// Convert depth-3d to scale-rotate for carousel (doesn't support 3D)
const carouselAnimationType = animationType === "depth-3d" ? "scale-rotate" : animationType;