Animated React card components

Wallet card

A balance card that counts up on odometer wheels like the chart cards. Switch currency to roll it; the action circles hint at what they do on hover and ripple on press.

Cards, in view, then press and hover, Motion

Install

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

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

Usage

import { WalletCard } from "@/components/wallet-card";

export default function Page() {
  return (
    <WalletCard
      balance={12480.2}
      currencies={[
        { code: "EUR", flag: "πŸ‡ͺπŸ‡Ί", name: "Euro", rate: 1, locale: "de-DE" },
        { code: "USD", flag: "πŸ‡ΊπŸ‡Έ", name: "US dollar", rate: 1.09 },
      ]}
      actions={[
        { label: "Send", icon: "transfer", onSelect: () => openSend() },
        { label: "Add", icon: "topup", onSelect: () => openTopUp() },
        { label: "Swap", icon: "exchange" },
        { label: "Later", icon: "paylater" },
      ]}
    />
  );
}

Props

PropTypeDefaultDescription
balancenumber3840.52Balance in the first currency's units
currenciesWalletCurrency[]USD, EUR, GBP, IDR{ code, flag, name, rate, locale?, digits? }; the first is the base
actionsWalletAction[]transfer, top up, exchange, pay later{ label, icon, onSelect? } always shown
moreActionsWalletAction[]bills, savings, mobile, investRevealed by "More features"; empty hides the row
colorstring"#2a2e3c"Action circle color
durationnumber1.4Count-up and currency roll length, seconds

More cards

  • Tilt card: A card that tips in 3D toward your cursor, lifts a little, and catches a glare that slides the other way.
  • Team morph: A presence pill that morphs into a team card: the shell reshapes while each avatar flies from the stack to its row.
  • Profile card: A creator profile whose pastel cover flows toward your pointer.
  • Bill list: Upcoming bills that rise in while the total counts up.

All animated react card components