{
  "registryVersion": 1,
  "id": "backgrounds/aurora-gradient",
  "slug": "aurora-gradient",
  "category": "backgrounds",
  "title": "Aurora Gradient",
  "description": "A soft aurora background: big blurred color blobs and swaying light curtains drift on random GSAP paths under film grain and twinkling glows. Put any content on top.",
  "tags": [
    "background",
    "gradient",
    "ambient",
    "loop",
    "glow"
  ],
  "useCases": [
    "Hero background for a SaaS, AI, or crypto landing page",
    "Calm backdrop behind a sign-up or waitlist form",
    "Launch or event announcement banner"
  ],
  "placement": [
    "background",
    "hero"
  ],
  "style": [
    "elegant",
    "minimal"
  ],
  "intensity": "subtle",
  "stack": {
    "framework": "react",
    "styling": "tailwindcss"
  },
  "dependencies": {
    "npm": {
      "gsap": "^3.13.0",
      "@gsap/react": "^2.1.0"
    },
    "gsapPlugins": []
  },
  "variants": [],
  "version": "1.0.2",
  "updatedAt": "2026-10-07",
  "design": {
    "motion": "smooth",
    "pace": "moderate",
    "radius": "round",
    "scheme": "light",
    "palette": "multicolor",
    "hues": [
      "violet",
      "cyan",
      "pink",
      "emerald",
      "indigo"
    ],
    "triggers": [
      "load",
      "loop"
    ]
  },
  "adapt": {
    "colors": [
      {
        "hue": "violet",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "cyan",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "pink",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "emerald",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "indigo",
        "classes": 0,
        "literals": 1
      }
    ],
    "radiusClasses": [
      "rounded-3xl",
      "rounded-full"
    ],
    "eases": [
      "sine"
    ],
    "durations": null
  },
  "photoSlots": [],
  "sprinkles": [
    {
      "id": "sprinkle/effects/twinkle@v2",
      "file": "sprinkles/v2/effects/twinkle.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/effects/twinkle.webp",
      "description": "Four-point twinkling star, white."
    },
    {
      "id": "sprinkle/effects/spark-cross@v2",
      "file": "sprinkles/v2/effects/spark-cross.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/effects/spark-cross.webp",
      "description": "Sharp cross-shaped sparkle, white."
    },
    {
      "id": "sprinkle/effects/bokeh@v2",
      "file": "sprinkles/v2/effects/bokeh.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/effects/bokeh.webp",
      "description": "Bokeh cluster, amber."
    }
  ],
  "page": "/snippets/backgrounds/aurora-gradient",
  "preview": "/preview/backgrounds/aurora-gradient",
  "registryPath": "/registry/snippets/backgrounds/aurora-gradient.json",
  "install": "npm i gsap @gsap/react",
  "codeLines": 229,
  "readme": "# Aurora Gradient\r\n\r\n`backgrounds/aurora-gradient`\r\n\r\nA soft aurora background: big blurred color blobs and swaying light curtains drift on random GSAP paths under film grain and twinkling glows. Put any content on top.\r\n\r\n## When to use\r\n\r\n- Hero background for a SaaS, AI, or crypto landing page.\r\n- Calm backdrop behind a sign-up or waitlist form.\r\n- Launch or event announcement banner.\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:\r\n\r\n```tsx\r\n<AuroraGradient colors={[\"#ff6b6b\", \"#feca57\", \"#48dbfb\"]} speed={0.7} className=\"h-[600px] max-w-none rounded-none\">\r\n  <YourHero />\r\n</AuroraGradient>\r\n```\r\n\r\n## Props\r\n\r\n| Prop | Type | Default | Description |\r\n| --- | --- | --- | --- |\r\n| `colors` | `string[]` | violet, cyan, pink, mint, indigo | One blob per color (3–6 work best). The first two also tint the light curtains. |\r\n| `background` | `string` | `\"#070816\"` | Panel base color (also used for the edge vignette). |\r\n| `speed` | `number` | `1` | Drift speed multiplier. |\r\n| `grain` | `number` | `0.22` | Film grain opacity, 0 to turn it off. |\r\n| `sparkles` | `boolean` | `true` | Twinkling glow sprinkles. |\r\n| `blend` | `\"screen\" \\| \"normal\" \\| \"multiply\"` | `\"screen\"` | Blend mode of the blobs. Use `\"normal\"` or `\"multiply\"` on a light `background`. |\r\n| `children` | `ReactNode` | sample hero | Content shown on top. |\r\n| `className` | `string` | `\"\"` | Extra classes for the panel (it is `h-[420px] max-w-5xl rounded-3xl` by default). |\r\n\r\n## Photos\r\n\r\nNo photos. The glows are sprinkles you can use directly from their public URLs:\r\n\r\n- `sprinkle/effects/twinkle@v2`\r\n- `sprinkle/effects/spark-cross@v2`\r\n- `sprinkle/effects/bokeh@v2`\r\n\r\n## Customization\r\n\r\n- Every blob tween uses `repeatRefresh: true`, so each cycle picks a fresh random target (`random(-40, 40)` and friends); widen the ranges for a wilder sky.\r\n- Softness: `blur-[44px]` on the blob layer (one blur for all blobs, cheap to render).\r\n- Starting spots and sizes: the `SPOTS` array.\r\n- The grain is a static SVG `feTurbulence`, so it costs nothing per frame.\r\n- Users with `prefers-reduced-motion` see a still aurora.\r\n",
  "sourceDir": "snippets/backgrounds/aurora-gradient",
  "thumbnail": "/registry/thumbnails/backgrounds/aurora-gradient.webp",
  "thumbnailDark": "/registry/thumbnails/backgrounds/aurora-gradient.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."
}
