14 lines
341 B
TypeScript
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 };
|
|
}
|