lucasbassetti

Mask Button

Buttons

About

A button whose fill sweeps away on hover using an animated sprite-sheet CSS mask, revealing the label underneath like a flipbook wipe transition.

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

Code

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

Usage.tsx

import { MaskButton } from "@/components/ui/mask-button";

export default function MaskButtonVariantsDemo() {
  return (
    <div className="flex flex-wrap items-center justify-center gap-6">
      <MaskButton mask="nature" variant="primary">
        Continue
      </MaskButton>
      <MaskButton mask="nature" variant="secondary">
        Learn more
      </MaskButton>
    </div>
  );
}

More by lucasbassetti

View all
  • Multi Button

    Multi Button

    19
  • Magic Button

    Magic Button

    8
  • Animated Tooltip

    Animated Tooltip

    6
  • Progress Fold Button

    Progress Fold Button

    3
  • Bento Grid

    Bento Grid

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Button

    Button

    32
  • Split Button

    Split Button

    32