Files
afc2e294-919f-499e-a4bf-542…/src/components/cardStack/layouts/grid/GridLayout.tsx

16 lines
346 B
TypeScript

import { useCardAnimation } from '../../hooks/useCardAnimation';
export function GridLayout() {
const { animate, itemRefs, containerRef, perspectiveRef, bottomContentRef } = useCardAnimation();
const handleAnimate = () => {
animate(0);
};
return (
<div>
<button onClick={handleAnimate}>Animate</button>
</div>
);
}