Kinetic UI
Back to Introduction
Buttons

Liquid Button

A button that reveals a fluid, morphing liquid background layer on hover.

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

The LiquidButton leverages SVG filters (feGaussianBlur and feColorMatrix) applied to a Framer Motion layer to create an incredibly organic, fluid animation effect when hovered. Now completely upgraded with 3 fluid interaction variants.

Live Preview

Liquid Button

Gooey Center:The liquid expands from the center with a strong gooey SVG filter.

Usage Guide

1. Import the Component

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

import { LiquidButton } from "@/components/creative/liquid-button";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { LiquidButton } from "@/components/creative/liquid-button";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <LiquidButton
        color="example"
        speed{10}
        scale{10}
      >
        <div>Content goes here</div>
      </LiquidButton>
    </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.