SPRINTSLab
← All components

Animated Button

A button with hover lift, a soft glow and a press effect. Pure Tailwind, no JavaScript.

Install

terminal
npx shadcn@latest add https://sprintslab.xyz/r/animated-button.json

Or copy the component into your project:

animated-button.tsx
import * as React from "react";

export function AnimatedButton({ className = "", ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>) {
  return (
    <button
      className={`rounded-xl bg-lime-300 px-6 py-3 font-semibold text-zinc-950 transition duration-200 ease-out hover:-translate-y-0.5 hover:shadow-lg hover:shadow-lime-300/40 active:translate-y-0 active:scale-95 ${className}`}
      {...props}
    />
  );
}

Usage

usage
import { AnimatedButton } from "@/components/animated-button";

<AnimatedButton>Get started</AnimatedButton>

More components