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

    137
  • Route Globe

    Route Globe

    125
  • Glass Tiles

    Glass Tiles

    109
  • Glyph Swell

    Glyph Swell

    50
  • Orbit Ring Stats

    Orbit Ring Stats

    47
  • Ask Bar

    Ask Bar

    38
  • Glass Ribbons

    Glass Ribbons

    30
  • Intent Label

    Intent Label

    29

More in Cards

View all
  • Stats cards with links

    Stats cards with links

    40
  • Course Design Cards

    Course Design Cards

    1.2K
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    449
  • Card Studio

    Card Studio

    36
  • Statistics Card 7

    Statistics Card 7

    312
  • Statistics Card 2

    Statistics Card 2

    293
  • The Item one

    The Item one

    3
  • Testimonial

    Testimonial

    70