Animated React card components

Contour feature card

A browser window in front of a live topographic map. The lines bend around the cursor, and a click sends a wave through the terrain.

Cards, hover and press, Motion

Install

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

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

Usage

import { ContourFeatureCard } from "@/components/contour-feature-card";

export default function Page() {
  return <ContourFeatureCard lines={14} scale={1} />;
}

Pass `children` to put your own screen in the window.

Props

PropTypeDefaultDescription
colorstring"#242423"Line colour
linesnumber14Contour levels to trace; more is tighter
scalenumber1Size of the hills and valleys
speednumber1Drift speed
liftnumber1How high the pointer's hill rises
childrenReactNodea dashboardWhat the window shows
classNamestringPlacement

More cards

  • Live gradient card: A metric on a drifting mesh gradient, with a dot matrix number that morphs dot by dot.
  • Integration hub: App tiles wired into one hub, with packets of dots flowing in along every wire.
  • Pixel feature card: A phone in front of dithered pixel clouds that drift, shimmer and light up under the cursor.
  • Column card: A tall card whose columns grow up from the floor while their values count up inside.

All animated react card components