{
  "registryVersion": 1,
  "id": "backgrounds/mirror-ball-background",
  "slug": "mirror-ball-background",
  "category": "backgrounds",
  "title": "Mirror Ball Background",
  "description": "A dark disco backdrop: a tiled chrome mirror ball spins and scatters colored light spots around the room; every beat the light changes color and the spin reverses.",
  "tags": [
    "chrome",
    "glow",
    "loop",
    "background",
    "3d"
  ],
  "useCases": [
    "Hero background for a party, club night, concert, or festival ticket page",
    "Night-time product launch or countdown section that needs energy",
    "Landing section for a DJ, band, or event venue"
  ],
  "placement": [
    "background",
    "hero"
  ],
  "style": [
    "bold",
    "dark",
    "glossy-3d"
  ],
  "intensity": "bold",
  "stack": {
    "framework": "react",
    "styling": "tailwindcss"
  },
  "dependencies": {
    "npm": {
      "gsap": "^3.13.0",
      "@gsap/react": "^2.1.0"
    },
    "gsapPlugins": []
  },
  "variants": [],
  "version": "1.0.0",
  "updatedAt": "2026-10-11",
  "design": {
    "motion": "smooth",
    "pace": "moderate",
    "radius": "round",
    "scheme": "both",
    "palette": "multicolor",
    "hues": [
      "violet",
      "pink",
      "cyan",
      "yellow",
      "green",
      "orange",
      "rose",
      "amber",
      "blue",
      "teal",
      "emerald"
    ],
    "triggers": [
      "load",
      "hover",
      "click",
      "loop"
    ]
  },
  "adapt": {
    "colors": [
      {
        "hue": "violet",
        "classes": 0,
        "literals": 8
      },
      {
        "hue": "pink",
        "classes": 0,
        "literals": 7
      },
      {
        "hue": "cyan",
        "classes": 0,
        "literals": 3
      },
      {
        "hue": "yellow",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "green",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "orange",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "rose",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "amber",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "blue",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "teal",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "emerald",
        "classes": 0,
        "literals": 1
      }
    ],
    "radiusClasses": [
      "rounded-3xl",
      "rounded-full"
    ],
    "eases": [
      "bounce",
      "power2",
      "power3",
      "sine"
    ],
    "durations": [
      0.5,
      3
    ]
  },
  "photoSlots": [],
  "sprinkles": [
    {
      "id": "sprinkle/shapes/chrome-orb@v2",
      "file": "sprinkles/v2/shapes/chrome-orb.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/chrome-orb.webp",
      "description": "Perfect sphere.",
      "fixed": true
    },
    {
      "id": "sprinkle/shapes/chrome-sparkle@v2",
      "file": "sprinkles/v2/shapes/chrome-sparkle.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/chrome-sparkle.webp",
      "description": "Four-point sparkle star with long thin points."
    },
    {
      "id": "sprinkle/shapes/chrome-star@v2",
      "file": "sprinkles/v2/shapes/chrome-star.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/chrome-star.webp",
      "description": "Five-point star with rounded tips."
    },
    {
      "id": "sprinkle/shapes/chrome-heart@v2",
      "file": "sprinkles/v2/shapes/chrome-heart.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/chrome-heart.webp",
      "description": "Puffy heart."
    },
    {
      "id": "sprinkle/shapes/chrome-swirl@v2",
      "file": "sprinkles/v2/shapes/chrome-swirl.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/chrome-swirl.webp",
      "description": "Chunky twisted swirl."
    },
    {
      "id": "sprinkle/shapes/chrome-smiley@v2",
      "file": "sprinkles/v2/shapes/chrome-smiley.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/chrome-smiley.webp",
      "description": "Round smiley face with engraved eyes and smile."
    },
    {
      "id": "sprinkle/shapes/chrome-butterfly@v2",
      "file": "sprinkles/v2/shapes/chrome-butterfly.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/chrome-butterfly.webp",
      "description": "Simple butterfly silhouette with solid wings."
    },
    {
      "id": "sprinkle/shapes/chrome-crescent@v2",
      "file": "sprinkles/v2/shapes/chrome-crescent.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/chrome-crescent.webp",
      "description": "Crescent moon."
    },
    {
      "id": "sprinkle/effects/glow-double-ring@v2",
      "file": "sprinkles/v2/effects/glow-double-ring.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/effects/glow-double-ring.webp",
      "description": "Two thin concentric glowing rings, magenta (glow effect)."
    },
    {
      "id": "sprinkle/effects/lens-flare@v2",
      "file": "sprinkles/v2/effects/lens-flare.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/effects/lens-flare.webp",
      "description": "Horizontal lens flare, cyan."
    },
    {
      "id": "sprinkle/effects/glow-prism-split@v1",
      "file": "sprinkles/v1/effects/glow-prism-split.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v1/effects/glow-prism-split.webp",
      "description": "Glow Prism Split is a effects glow decorative asset in the effects group, created in the Glow & Neon style for web compositions, landing pages, and UI decoration."
    }
  ],
  "page": "/snippets/backgrounds/mirror-ball-background",
  "preview": "/preview/backgrounds/mirror-ball-background",
  "registryPath": "/registry/snippets/backgrounds/mirror-ball-background.json",
  "install": "npm i gsap @gsap/react",
  "codeLines": 555,
  "readme": "# Mirror Ball Background\r\n\r\n`backgrounds/mirror-ball-background`\r\n\r\nA dark disco backdrop: a tiled chrome mirror ball spins and scatters colored light spots around the room; every beat the light changes color and the spin reverses.\r\n\r\n## When to use\r\n\r\n- Hero background for a party, club night, concert, or festival ticket page.\r\n- Night-time product launch or countdown section that needs energy.\r\n- Landing section for a DJ, band, or event venue.\r\n\r\n## Install\r\n\r\n1. `npm i gsap @gsap/react`\r\n2. Copy the code with the **Copy** button on the snippet page and save it as a React component.\r\n3. Use it: `<MirrorBallBackground beat={60 / 120}><YourHero /></MirrorBallBackground>`\r\n\r\n## Props\r\n\r\n| Prop | Type | Default | Description |\r\n| --- | --- | --- | --- |\r\n| `palettes` | `LightPalette[]` | Disco, Sunset, Ice | Light palettes `{ name, colors: [4 hex colors] }`. A click on the room or the **Lights** button moves to the next one. |\r\n| `bits` | `ChromeBit[]` | 7 chrome shapes | Shapes around the room `{ src, left, top, size, rotate? }` (percent positions) that flash when a light spot sweeps over them. |\r\n| `beat` | `number` | `2` | Seconds between beats. Each beat changes the light color, pulses a ring from the ball, and reverses the spin. Use `60 / bpm` to match a track. |\r\n| `autoPlay` | `boolean` | `false` | Idle demo: the spotlights lean left and right and the palette changes every few beats, until the pointer, a touch, or focus arrives. For previews and thumbnails. |\r\n| `children` | `ReactNode` | sample event hero | Your content, shown over the room. |\r\n| `className` | `string` | `\"\"` | Extra classes for the panel (change `h-[420px]` here). |\r\n\r\nThe pointer tilts the spotlights and the spots follow.\r\n\r\n## Photos\r\n\r\nNo photos. Every image is a sprinkle you can use directly from its public URL:\r\n\r\n- `sprinkle/shapes/chrome-orb@v2` (the ball; the mirror tiles are drawn over it, so keep a round shape)\r\n- `sprinkle/shapes/chrome-sparkle@v2`\r\n- `sprinkle/shapes/chrome-star@v2`\r\n- `sprinkle/shapes/chrome-heart@v2`\r\n- `sprinkle/shapes/chrome-swirl@v2`\r\n- `sprinkle/shapes/chrome-smiley@v2`\r\n- `sprinkle/shapes/chrome-butterfly@v2`\r\n- `sprinkle/shapes/chrome-crescent@v2`\r\n- `sprinkle/effects/glow-double-ring@v2`\r\n- `sprinkle/effects/lens-flare@v2`\r\n- `sprinkle/effects/glow-prism-split@v1`\r\n\r\n## Customization\r\n\r\n- The light spots and mirror tiles are drawn on two canvases in one GSAP ticker, so the catalog can pause them; there are 220 spots, change the `length` to make the room busier or calmer.\r\n- The ball sits at the top right; move it in `measure()` (`view.bx`, `view.by`).\r\n- The room is dark in both color modes (a violet hall in light mode, a black club in dark mode) because the spots need a dark wall to show.\r\n- With reduced motion the ball, spots, and beams are still; clicking still changes the palette.\r\n",
  "sourceDir": "snippets/backgrounds/mirror-ball-background",
  "thumbnail": "/registry/thumbnails/backgrounds/mirror-ball-background.webp",
  "thumbnailDark": "/registry/thumbnails/backgrounds/mirror-ball-background.dark.webp",
  "codeAccess": "The code is not in this file. Get it with the MCP tool get_snippet and an InWebAsset API key (header Authorization: Bearer aw_...; sign in at /agents to create one), or with the Copy button on the snippet page after signing in. Free accounts can take snippet code 5 times per day (every fetch counts, also of a snippet fetched before); Pro accounts have no limit."
}
