Animated React card components

Flux card

A feature card on a pixelated, dithered gradient with a negative magnetic field: squares flee the pointer and leave a hole that follows it. Notification pills bounce off a shielded focus timer.

Cards, in view and timeline, plus hover and press, Motion

Install

npm i clsx motion tailwind-merge && curl -o components/flux-card.tsx https://motion-brew.com/r/flux-card.tsx

One self contained file for React and Tailwind CSS: flux-card.tsx. Or ask your AI agent to add it through the MCP server.

Usage

import { FluxCard } from "@/components/flux-card";

export default function Features() {
  return (
    <FluxCard
      title="Keep the noise out"
      minutes={25}
      pings={[
        { label: "Maya: quick question?", icon: "message" },
        { label: "Standup in 5 min", icon: "calendar" },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
titleReactNodeKeep the noise outCard title
descriptionReactNodea short lineUnder the title
labelstring"Deep work"Inside the timer
minutesnumber25Length of the focus block
pingsFluxPing[]five sampleslabel and icon (message, calendar, mail, bell, receipt), up to six
colors[string, string, string, string]an ember rampThe main flow, deepest first
accentstring"#5b5bff"Dithered into the lower right
pixelnumber10Square size in px, 6 to 24
dithernumber0.6How much the shades mix, 0 to 1
fieldnumber0.8Strength of the repelling field, 0 to 1
radiusnumber110Reach of the field in px
speednumber0.6Flow speed, 0 to 2
classNamestringPlacement and size

More cards

  • Aura card: A feature card on a live shader gradient that leans toward the pointer and ripples when pressed.
  • Pricing card: A plan card in a soft shell.
  • Liquid card: Four status cards with an icon as a glass container: liquid pours in, waves roll and bubbles rise.
  • Team member card: A team member card with pixels burning up the photo like fire.

All animated react card components