About
Grid distortion effect
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Grid distortion to your project and fits it to your theme.
Code
How Grid distortion is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { GridDistortion } from "@/components/ui/grid-distortion";
const GridDistortionDemo = () => {
return (
<div className="w-screen h-screen bg-neutral-800">
<GridDistortion
className="w-full h-full"
imageSrc="https://cdn.21st.dev/assets/mirror/c2/c2e02223b941685c55ec81a6a4f4a32580bf1d0f4c86bc5ed533c9e45394b740.jpg"
grid={25}
mouse={0.25}
strength={0.3}
relaxation={0.93}
/>
</div>
);
};
export { GridDistortionDemo };















