Kinetic UI
Back to Introduction
Background Effects

Fluid Background

A stunning WebGL shader background that simulates fluid noise reacting to mouse movement.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add fluid-background

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

Fluid Background

Move your cursor

The WebGL shader responds organically to mouse proximity, creating mesmerizing fluid dynamics.

Installation

npx kinetic-ui-cli@latest add fluid-background

Props

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>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.