The PixelTransition component uses React Three Fiber and custom GLSL shaders to create a mesmerizing hover effect. When hovered, the first image breaks apart into a grid of pixels to reveal the second image underneath, a signature effect seen on top-tier Awwwards portfolios.
Live Preview
Installation
npx kinetic-ui-cli@latest add pixel-transitionUsage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { PixelTransition } from "@/components/creative/pixel-transition";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { PixelTransition } from "@/components/creative/pixel-transition";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<PixelTransition
firstImage="example"
secondImage="example"
gridSize{10}
/>
</div>
);
}