diff --git a/src/hooks/useCardAnimation.ts b/src/hooks/useCardAnimation.ts new file mode 100644 index 0000000..4d7c504 --- /dev/null +++ b/src/hooks/useCardAnimation.ts @@ -0,0 +1,18 @@ +import { useEffect, RefObject } from 'react'; + +export interface UseCardAnimationOptions { + containerRef: RefObject; + itemRefs: RefObject<(HTMLDivElement | null)[]>; + perspectiveRef?: RefObject; + bottomContentRef?: RefObject; +} + +export const useCardAnimation = (options: UseCardAnimationOptions) => { + const { containerRef, itemRefs, perspectiveRef, bottomContentRef } = options; + + useEffect(() => { + // Animation logic here + }, [containerRef, itemRefs, perspectiveRef, bottomContentRef]); + + return {}; +};