ham7a311

Sweep Cards

Cards

About

A row of pastel question-and-answer cards where an animated demo cursor sweeps across and highlights the key phrase in each answer as the cards scroll into view.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sweep Cards to your project and fits it to your theme.

Code

How Sweep Cards is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { SweepCards, TONES, type SweepCard } from "@/components/ui/sweep-cards";

const CARDS: SweepCard[] = [
  {
    title: "Why do answer engines skip your site?",
    body: "Most pages are built only for human eyes, so AI crawlers are left to guess what they mean. We find [[the quiet problems in your markup]] that make answer engines pass you by.",
    tone: TONES.sky,
  },
  {
    title: "How do you make a site easy for AI to read?",
    body: "We build a lean second copy of your site, full of [[clean structured data]] taken straight from the pages you already have, so language models can read it at a glance.",
    tone: TONES.mint,
  },
  {
    title: "How do you get named in AI answers?",
    body: "Assistants skip past layout code and go looking for [[clear, well-labelled facts]]. That is what gets Masar recommended accurately when people ask.",
    tone: TONES.butter,
  },
];

export default function SweepCardsDemo() {
  return (
    <div className="w-full min-h-screen">
      <SweepCards cards={CARDS} theme="dark" className="w-full" />
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    216
  • Route Globe

    Route Globe

    171
  • Glass Tiles

    Glass Tiles

    159
  • Orbit Ring Stats

    Orbit Ring Stats

    71
  • Glyph Swell

    Glyph Swell

    66
  • Fan Deck Card

    Fan Deck Card

    54
  • Ask Bar

    Ask Bar

    52
  • Glass Ribbons

    Glass Ribbons

    46

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198