The FluidBackground component uses React Three Fiber and a custom GLSL fragment shader. It generates multiple layers of Simplex 2D noise that drift over time and organically distort based on mouse proximity, creating a premium "liquid smoke" aesthetic perfect for hero sections.
Live Preview
Move your cursor
The WebGL shader responds organically to mouse proximity, creating mesmerizing fluid dynamics.
Installation
npx kinetic-ui-cli@latest add fluid-backgroundProps
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { FluidBackground } from "@/components/creative/fluid-background";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { FluidBackground } from "@/components/creative/fluid-background";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<FluidBackground
color1="example"
color2="example"
color3="example"
/>
</div>
);
}