Kinetic UI
Back to Introduction
Mouse Interactions

Liquid Image Distortion

A WebGL shader effect that distorts an image with a liquid ripple on hover.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add liquid-distortion

A premium WebGL shader effect built with react-three-fiber that distorts an image with a liquid ripple and RGB split on hover. Perfect for project thumbnails and high-end galleries.

Live Preview

Liquid Image Distortion

Installation

npx kinetic-ui-cli@latest add liquid-distortion

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { LiquidDistortion } from "@/components/creative/liquid-distortion";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { LiquidDistortion } from "@/components/creative/liquid-distortion";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <LiquidDistortion
        imageUrl="example"
        alt="example"
        rippleAmount{10}
      />
    </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.