A button that leans toward the cursor with a springy, physical pull.
14 components
Looking for a React animated button? These pull toward the cursor, sweep with light, fill as you hold, morph into a tick when a save succeeds, or burst with confetti. Each one is a native button underneath: keyboard-ready, screen-reader friendly and calm for reduced-motion users.
Refine by interaction, access needs or plan.
A button that leans toward the cursor with a springy, physical pull.
A dark button with a light sweep that draws the eye without shouting.
A button that fills while held, so destructive actions can never happen by accident.
Morphs from its label to a spinner, then to a drawn tick or a shake, so every save feels answered.
A like or favourite toggle: the heart pops, a ring expands, sparks fly and the count rolls up.
A copy-to-clipboard button whose clipboard icon spins into a drawn tick while the label swaps to Copied, without the button changing width.
A call to action whose arrow slides out on hover while a fresh one slides in from the left. Pure CSS, solid or outline.
An outline button that floods with colour from exactly where the cursor came in, and drains out towards where it leaves.
A button that sends a ripple out from exactly where it was pressed, or from the centre when pressed from the keyboard.
A chunky, tactile 3D button that lifts a little on hover and presses down onto its base when clicked, like a real key.
A celebratory burst of brand-coloured confetti that flies up, flutters as it falls and fades, for sign-ups, purchases and wins.
Confirm by sliding the knob all the way across, for payments and deletions. Tapping the knob or the arrow keys work too.
A dark button whose edge catches a light that follows the cursor, with a soft wash inside and a slow gleam travelling round at rest.
A round plus button that unfolds into a stack of labelled actions: the plus turns into a cross and each action springs out in turn.
An animated button answers a click or a hover with motion that confirms what happened: the Submit Button turns into a spinner and then a tick, the Copy Button swaps its label to Copied, and Hold to Confirm fills up so a destructive action can't happen by accident. Others, like the Magnetic Button and Glow Border Button, are there to draw the eye to your main call to action.
Use one or two per page, on the actions that matter most: sign up, buy, save, delete. A page where every button moves feels busy, and the motion stops meaning anything. Every component here keeps working without the animation, so reduced-motion users get a normal button.
To use one, open its page, tune it in the playground, then copy the TypeScript file into components/motionkit or install it with the shadcn CLI command shown there. Each needs only React, Tailwind CSS v4 and, for most, the motion package. Import it like any other button and pass your own label and onClick.
The Magnetic Button and Glow Border Button draw attention without being loud, and the Arrow Slide Button is pure CSS, so it costs nothing to run. For forms, the Submit Button shows saving, success and errors in the button itself.
Yes. Each is a native button (or a link where it navigates), so it works with Tab, Enter and Space, shows a focus ring, and is announced correctly by screen readers. Slide to Confirm also works from the arrow keys.
Most are free to copy, with their full source. Those marked Free account need a free MotionKit account first. Those marked Plus are part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year), and their previews are free to explore.
Yes. Each is a single TypeScript file for React with Tailwind CSS v4 and Motion. It starts with "use client" for the Next.js App Router, works in Vite as it is, and runs in Astro as a React island.
Run one shadcn CLI command from the component's page, or copy its source into components/motionkit. Either way the code is yours to change: there's no package to keep updated.
Each component's page publishes an audit covering keyboard use, screen readers, reduced motion and colour contrast, including where it only partly meets a criterion and what to do about it.