Add src/hooks/useCardAnimation.ts

This commit is contained in:
2026-03-04 18:50:27 +00:00
parent d1d6ebe559
commit 39aabdb7b7

View File

@@ -0,0 +1,18 @@
import { useEffect, RefObject } from 'react';
export interface UseCardAnimationOptions {
containerRef: RefObject<HTMLDivElement>;
itemRefs: RefObject<(HTMLDivElement | null)[]>;
perspectiveRef?: RefObject<HTMLDivElement>;
bottomContentRef?: RefObject<HTMLDivElement>;
}
export const useCardAnimation = (options: UseCardAnimationOptions) => {
const { containerRef, itemRefs, perspectiveRef, bottomContentRef } = options;
useEffect(() => {
// Animation logic here
}, [containerRef, itemRefs, perspectiveRef, bottomContentRef]);
return {};
};