ham7a311

Dot Swarm

Backgrounds

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 DotSwarmPaperDemo() {
  return (
    <div className="w-full h-screen">
      <DotSwarm dot="#161412" ground="#efe9dc" className="w-full h-full" />
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    8
  • Wave Mesh

    Wave Mesh

    7
  • Glass Carousel

    Glass Carousel

    6
  • Time Window

    Time Window

    4
  • Ruler Picker

    Ruler Picker

    4
  • Liquid Chrome

    Liquid Chrome

    4
  • Glass Tiles

    Glass Tiles

    4
  • Intent Label

    Intent Label

    3

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    807
  • Gradient Backgrounds

    Gradient Backgrounds

    25
  • Background snippets

    Background snippets

    105
  • Jade Sky

    Jade Sky

    84
  • Background Components

    Background Components

    20
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    532
  • Dark Gradient Background

    Dark Gradient Background

    143
  • Glass Fold

    Glass Fold

    192