From 39aabdb7b7cd62940d244dee53b590e13ffc7a22 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 4 Mar 2026 18:50:27 +0000 Subject: [PATCH] Add src/hooks/useCardAnimation.ts --- src/hooks/useCardAnimation.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/hooks/useCardAnimation.ts 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 {}; +};