ham7a311

Dot Swarm

Backgrounds 11

About

An interactive canvas background of hundreds of dots that morph between outline shapes, scatter away from the pointer, and burst into the next shape on a click or tap.

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

Code

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

Usage.tsx

"use client";

import DotSwarm from "@/components/ui/dot-swarm";

export default function DotSwarmDemo() {
  return (
    <div className="w-full h-screen">
      <DotSwarm dot="#f2efe9" ground="#0b0b0c" className="w-full h-full" />
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    253
  • Route Globe

    Route Globe

    195
  • Glass Tiles

    Glass Tiles

    183
  • Orbit Ring Stats

    Orbit Ring Stats

    82
  • Glyph Swell

    Glyph Swell

    78
  • Fan Deck Card

    Fan Deck Card

    77
  • Ask Bar

    Ask Bar

    63
  • Glass Ribbons

    Glass Ribbons

    53

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    976
  • Honey Ember Background

    Honey Ember Background

    107
  • Background Components

    Background Components

    254
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    643
  • Background snippets

    Background snippets

    25
  • Gradient Backgrounds

    Gradient Backgrounds

    28
  • Dark Gradient Background

    Dark Gradient Background

    169
  • Gradient Blur Bg

    Gradient Blur Bg

    19