Installation
npx kinetic-ui-cli@latest add isometric-grid
How It Works
This component relies on CSS 3D transforms (perspective and transform-style: preserve-3d) combined with Framer Motion.
We track the mouse position relative to the container and map those X/Y coordinates to the grid's rotateX and rotateZ values using useTransform.
Each individual card inside the grid then utilizes simple CSS hover states to lift upwards (-translate-y) and cast a larger drop shadow, enhancing the 3D depth effect.
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { IsometricGrid } from "@/components/creative/isometric-grid";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { IsometricGrid } from "@/components/creative/isometric-grid";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<IsometricGrid
items{/* value */}
columns{10}
/>
</div>
);
}