{
  "registryVersion": 1,
  "id": "backgrounds/lava-lamp-background",
  "slug": "lava-lamp-background",
  "category": "backgrounds",
  "title": "Lava Lamp Background",
  "description": "A retro lava lamp backdrop: gooey gradient wax rises, merges, and pinches apart in two side lamps; the pointer heats a blob until it stretches and splits in two.",
  "tags": [
    "gradient",
    "morph",
    "ambient",
    "background",
    "loop"
  ],
  "useCases": [
    "Hero background for a creative studio, agency, or design portfolio with a 70s mood",
    "Backdrop for a music night, vinyl shop, or festival landing section",
    "Calm, playful section behind a newsletter sign-up or product launch headline"
  ],
  "placement": [
    "background",
    "hero"
  ],
  "style": [
    "retro",
    "playful"
  ],
  "intensity": "medium",
  "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": [
      "orange",
      "pink",
      "purple",
      "yellow",
      "rose",
      "violet",
      "amber",
      "red",
      "fuchsia"
    ],
    "triggers": [
      "load",
      "hover",
      "click",
      "loop"
    ]
  },
  "adapt": {
    "colors": [
      {
        "hue": "orange",
        "classes": 0,
        "literals": 22
      },
      {
        "hue": "pink",
        "classes": 0,
        "literals": 13
      },
      {
        "hue": "purple",
        "classes": 0,
        "literals": 8
      },
      {
        "hue": "yellow",
        "classes": 0,
        "literals": 2
      },
      {
        "hue": "rose",
        "classes": 0,
        "literals": 2
      },
      {
        "hue": "violet",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "amber",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "red",
        "classes": 0,
        "literals": 1
      },
      {
        "hue": "fuchsia",
        "classes": 0,
        "literals": 1
      }
    ],
    "radiusClasses": [
      "rounded-3xl",
      "rounded-full"
    ],
    "eases": [
      "elastic",
      "power2",
      "power3",
      "sine"
    ],
    "durations": [
      0.5,
      3.4
    ]
  },
  "photoSlots": [],
  "sprinkles": [
    {
      "id": "sprinkle/shapes/gradient-drop@v2",
      "file": "sprinkles/v2/shapes/gradient-drop.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-drop.webp",
      "description": "Tilted liquid drop, violet to hot pink."
    },
    {
      "id": "sprinkle/shapes/gradient-drip@v2",
      "file": "sprinkles/v2/shapes/gradient-drip.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-drip.webp",
      "description": "Dripping blob, yellow to red."
    },
    {
      "id": "sprinkle/shapes/gradient-bean@v2",
      "file": "sprinkles/v2/shapes/gradient-bean.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-bean.webp",
      "description": "Kidney bean shape, deep pink to purple."
    },
    {
      "id": "sprinkle/shapes/gradient-blob@v2",
      "file": "sprinkles/v2/shapes/gradient-blob.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-blob.webp",
      "description": "Rounded three-lobed blob, magenta to orange."
    },
    {
      "id": "sprinkle/shapes/gradient-pebble@v2",
      "file": "sprinkles/v2/shapes/gradient-pebble.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-pebble.webp",
      "description": "Smooth oval pebble, electric blue to cyan."
    },
    {
      "id": "sprinkle/shapes/gradient-splat@v2",
      "file": "sprinkles/v2/shapes/gradient-splat.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-splat.webp",
      "description": "Splat blob with short rounded arms, lime to teal."
    },
    {
      "id": "sprinkle/shapes/gradient-flower@v2",
      "file": "sprinkles/v2/shapes/gradient-flower.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-flower.webp",
      "description": "Soft four-lobed flower blob, orange to yellow."
    },
    {
      "id": "sprinkle/shapes/gradient-cloud@v2",
      "file": "sprinkles/v2/shapes/gradient-cloud.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-cloud.webp",
      "description": "Puffy cloud blob, coral to deep peach."
    },
    {
      "id": "sprinkle/shapes/gradient-crescent@v2",
      "file": "sprinkles/v2/shapes/gradient-crescent.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-crescent.webp",
      "description": "Fat crescent, purple to coral."
    },
    {
      "id": "sprinkle/shapes/gradient-squircle@v2",
      "file": "sprinkles/v2/shapes/gradient-squircle.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/gradient-squircle.webp",
      "description": "Squircle, sky blue to violet."
    }
  ],
  "page": "/snippets/backgrounds/lava-lamp-background",
  "preview": "/preview/backgrounds/lava-lamp-background",
  "registryPath": "/registry/snippets/backgrounds/lava-lamp-background.json",
  "install": "npm i gsap @gsap/react",
  "codeLines": 508,
  "readme": "# Lava Lamp Background\r\n\r\n`backgrounds/lava-lamp-background`\r\n\r\nA retro lava lamp backdrop: gooey gradient wax rises, merges, and pinches apart in two side lamps; the pointer heats a blob until it stretches and splits in two.\r\n\r\n## When to use\r\n\r\n- Hero background for a creative studio, agency, or design portfolio with a 70s mood.\r\n- Backdrop for a music night, vinyl shop, or festival landing section.\r\n- Calm, playful section behind a newsletter sign-up or product launch headline.\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: `<LavaLampBackground><YourHero /></LavaLampBackground>`\r\n\r\n## Props\r\n\r\n| Prop | Type | Default | Description |\r\n| --- | --- | --- | --- |\r\n| `blobs` | `LavaBlob[]` | 9 gradient blobs | Wax that rises and sinks: `{ src, lane, size, start, heat, rotate? }`. `lane` is `\"left\"`, `\"center\"` (slow and faded behind the copy), or `\"right\"`. |\r\n| `pools` | `LavaPool[]` | 3 pools | Big wax shapes resting on the bottom (`y` above 1) or hanging from the top (`y` below 0); blobs melt into them. |\r\n| `speed` | `number` | `1` | Overall speed of the wax. |\r\n| `autoPlay` | `boolean` | `false` | Idle demo: a heat spot visits the side lamps and splits a blob every few seconds, until the pointer, a touch, or focus arrives. For previews and thumbnails. |\r\n| `children` | `ReactNode` | sample hero | Your content, shown over the lamp. |\r\n| `className` | `string` | `\"\"` | Extra classes for the panel (change `h-[420px]` here). |\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/gradient-drop@v2`\r\n- `sprinkle/shapes/gradient-drip@v2`\r\n- `sprinkle/shapes/gradient-bean@v2`\r\n- `sprinkle/shapes/gradient-blob@v2`\r\n- `sprinkle/shapes/gradient-pebble@v2`\r\n- `sprinkle/shapes/gradient-splat@v2`\r\n- `sprinkle/shapes/gradient-flower@v2`\r\n- `sprinkle/shapes/gradient-cloud@v2`\r\n- `sprinkle/shapes/gradient-crescent@v2`\r\n- `sprinkle/shapes/gradient-squircle@v2`\r\n\r\n## Customization\r\n\r\n- The gooey look is one SVG filter (blur + alpha threshold) applied to each lamp; raise `stdDeviation` for thicker necks between blobs.\r\n- Wax heats near the bottom and cools near the top, so blobs rise and sink on their own; change the speeds in `LANE_SPEED`.\r\n- Keep warm colors in one lamp and cool ones in another: where two blobs touch, the goo mixes their colors.\r\n- With reduced motion the lamp is still: blobs rest where they start, merged with the pools.\r\n",
  "sourceDir": "snippets/backgrounds/lava-lamp-background",
  "thumbnail": "/registry/thumbnails/backgrounds/lava-lamp-background.webp",
  "thumbnailDark": "/registry/thumbnails/backgrounds/lava-lamp-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."
}
