odysseyui

Liquid Button

Buttons 23

About

A button whose background liquid-fills from one side to the other on hover, built with Framer Motion CSS variable transitions.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Liquid Button to your project and fits it to your theme.

Code

How Liquid Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { LiquidButton } from "@/components/ui/primitives-buttons-liquid";

export default function LiquidButtonDemo() {
  return (
    <div className="flex items-center justify-center p-10">
      <LiquidButton
        delay="0.3s"
        fillHeight="3px"
        hoverScale={1.05}
        tapScale={0.95}
        className="text-sm font-medium px-4 py-2 h-10 overflow-hidden [--liquid-button-color:var(--primary)] [--liquid-button-background-color:var(--accent)] text-primary hover:text-primary-foreground"
      >
        Liquid Button
      </LiquidButton>
    </div>
  );
}

Dependencies

More by odysseyui

View all
  • AI Orb Avatar

    AI Orb Avatar

    216
  • Thought Chain

    Thought Chain

    110
  • Pricing 6

    Pricing 6

    54
  • Greeting Preloader

    Greeting Preloader

    38
  • Typewriter

    Typewriter

    5
  • GitHub Stars Button

    GitHub Stars Button

More in Buttons

View all
  • Texture Button

    Texture Button

    98
  • Button

    Button

    1
  • Button

    Button

    68
  • Button

    Button

    65
  • Eclipse Button

    Eclipse Button

    3
  • Base Button

    Base Button

    4
  • HeroUI Button Group

    HeroUI Button Group

    2
  • App Store Button

    App Store Button

    460