Files
59f443a7-116a-4bc5-bb20-5fd…/src/components/cardStack/hooks/useCardAnimation.ts

14 lines
341 B
TypeScript

import { useDepth3DAnimation } from "./useDepth3DAnimation";
import { useRef, useEffect } from "react";
export function useCardAnimation() {
const containerRef = useRef<HTMLDivElement>(null);
const depth3D = useDepth3DAnimation();
useEffect(() => {
// Animation logic here
}, [depth3D]);
return { containerRef, depth3D };
}