{
  "registryVersion": 1,
  "id": "backgrounds/bauhaus-gear-train-background",
  "slug": "bauhaus-gear-train-background",
  "category": "backgrounds",
  "title": "Bauhaus Gear Train Background",
  "description": "Bauhaus shapes become meshing gears around the panel edges; drag any wheel and the whole train turns by its ratios, while a pair of eye gears blink each time they line up.",
  "tags": [
    "shape",
    "drag",
    "background",
    "loop"
  ],
  "useCases": [
    "Hero background for a design studio or agency 'how we work' section",
    "Backdrop for an engineering, edtech, or STEM course landing page",
    "Team or collaboration page that shows every part moving together"
  ],
  "placement": [
    "background",
    "hero"
  ],
  "style": [
    "bold",
    "minimal"
  ],
  "intensity": "medium",
  "stack": {
    "framework": "react",
    "styling": "tailwindcss"
  },
  "dependencies": {
    "npm": {
      "gsap": "^3.13.0",
      "@gsap/react": "^2.1.0"
    },
    "gsapPlugins": [
      "Draggable",
      "InertiaPlugin"
    ]
  },
  "variants": [],
  "version": "1.0.0",
  "updatedAt": "2026-10-11",
  "design": {
    "motion": "smooth",
    "pace": "moderate",
    "radius": "round",
    "scheme": "both",
    "palette": "multicolor",
    "hues": [
      "amber",
      "blue",
      "yellow",
      "red"
    ],
    "triggers": [
      "load",
      "hover",
      "click",
      "drag",
      "loop"
    ]
  },
  "adapt": {
    "colors": [
      {
        "hue": "amber",
        "classes": 0,
        "literals": 11
      },
      {
        "hue": "blue",
        "classes": 0,
        "literals": 6
      },
      {
        "hue": "yellow",
        "classes": 0,
        "literals": 5
      },
      {
        "hue": "red",
        "classes": 0,
        "literals": 4
      }
    ],
    "radiusClasses": [
      "rounded-3xl",
      "rounded-full"
    ],
    "eases": [
      "power1",
      "power2",
      "sine"
    ],
    "durations": [
      0.09,
      3.5
    ]
  },
  "photoSlots": [],
  "sprinkles": [
    {
      "id": "sprinkle/shapes/bauhaus-ring@v2",
      "file": "sprinkles/v2/shapes/bauhaus-ring.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-ring.webp",
      "description": "Thick ring, half red and half cobalt blue (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-half-circles@v2",
      "file": "sprinkles/v2/shapes/bauhaus-half-circles.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-half-circles.webp",
      "description": "Two half circles facing each other, red and cobalt blue (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-quarters@v2",
      "file": "sprinkles/v2/shapes/bauhaus-quarters.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-quarters.webp",
      "description": "Square made of four quarter circles in red, mustard, cobalt blue and black (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-sun@v2",
      "file": "sprinkles/v2/shapes/bauhaus-sun.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-sun.webp",
      "description": "Half sun with stripe rays, red and mustard (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-striped-circle@v2",
      "file": "sprinkles/v2/shapes/bauhaus-striped-circle.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-striped-circle.webp",
      "description": "Circle with three horizontal black stripes, mustard (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-flower@v2",
      "file": "sprinkles/v2/shapes/bauhaus-flower.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-flower.webp",
      "description": "Four half circles arranged like petals, red (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-cross@v2",
      "file": "sprinkles/v2/shapes/bauhaus-cross.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-cross.webp",
      "description": "Plus cross made of bars, red, mustard and black (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-eye@v2",
      "file": "sprinkles/v2/shapes/bauhaus-eye.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-eye.webp",
      "description": "Almond shape with a black circle inside, mustard (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-face@v2",
      "file": "sprinkles/v2/shapes/bauhaus-face.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-face.webp",
      "description": "Abstract face of a circle, a half circle and a bar, cream, red and black (flat Bauhaus).",
      "fixed": true
    },
    {
      "id": "sprinkle/shapes/bauhaus-pill-dots@v2",
      "file": "sprinkles/v2/shapes/bauhaus-pill-dots.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-pill-dots.webp",
      "description": "Cream pill with three black dots (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-steps@v2",
      "file": "sprinkles/v2/shapes/bauhaus-steps.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-steps.webp",
      "description": "Three stepped blocks, mustard, red and cobalt blue (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-wave@v2",
      "file": "sprinkles/v2/shapes/bauhaus-wave.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-wave.webp",
      "description": "Three stacked half circles forming a wave, cobalt blue (flat Bauhaus)."
    },
    {
      "id": "sprinkle/shapes/bauhaus-tile@v2",
      "file": "sprinkles/v2/shapes/bauhaus-tile.webp",
      "publicUrl": "https://inassetweb-cdn.inwebsite.online/sprinkles/v2/shapes/bauhaus-tile.webp",
      "description": "Square tile split diagonally, cobalt blue and cream with a red dot (flat Bauhaus)."
    }
  ],
  "page": "/snippets/backgrounds/bauhaus-gear-train-background",
  "preview": "/preview/backgrounds/bauhaus-gear-train-background",
  "registryPath": "/registry/snippets/backgrounds/bauhaus-gear-train-background.json",
  "install": "npm i gsap @gsap/react",
  "codeLines": 559,
  "readme": "# Bauhaus Gear Train Background\r\n\r\n`backgrounds/bauhaus-gear-train-background`\r\n\r\nBauhaus shapes (ring, sun, striped circle, flower, face, and more) ride on meshing gears laid around the edges of the panel, leaving the middle free for your content. Every gear turns at its own ratio: a 10-tooth gear next to a 40-tooth one spins four times as fast. Drag any wheel and the whole train turns with it, with inertia. A pair of eye gears blinks each time the eyes line up, and the face gear winks when it comes upright.\r\n\r\n## When to use\r\n\r\n- Hero background for a design studio or agency \"how we work\" section.\r\n- Backdrop for an engineering, edtech, or STEM landing page.\r\n- Team or collaboration page where every part moves together.\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 and put your own content inside:\r\n\r\n```tsx\r\n<BauhausGearTrainBackground className=\"h-[560px] max-w-none rounded-none\">\r\n  <YourHero />\r\n</BauhausGearTrainBackground>\r\n```\r\n\r\nYour content layer lets pointer events through to the gears; links, buttons, and inputs inside it stay clickable.\r\n\r\n## Props\r\n\r\n| Prop | Type | Default | Description |\r\n| --- | --- | --- | --- |\r\n| `speed` | `number` | `2.4` | Drift speed in teeth per second; negative turns the train the other way. |\r\n| `autoPlay` | `boolean` | `false` | Idle demo for previews: an invisible hand flicks the driver now and then (the small gears whirl) and reverses it about every 6 s, until someone interacts. |\r\n| `children` | `ReactNode` | sample hero | Your content, centered over the train. |\r\n| `className` | `string` | `\"\"` | Extra classes for the wrapper (size, corners). |\r\n\r\n## Interaction\r\n\r\n- Drag or swipe any gear to turn the whole train; let go with some speed and it keeps spinning, then drifts on in that direction.\r\n- The face gear is a keyboard speed slider: focus it with Tab, then Left/Right (or Up/Down) change speed and direction, Home stops it.\r\n- With `prefers-reduced-motion`, the gears stand still.\r\n- The animation pauses while the panel is off-screen.\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/bauhaus-ring@v2`\r\n- `sprinkle/shapes/bauhaus-half-circles@v2`\r\n- `sprinkle/shapes/bauhaus-quarters@v2`\r\n- `sprinkle/shapes/bauhaus-sun@v2`\r\n- `sprinkle/shapes/bauhaus-striped-circle@v2`\r\n- `sprinkle/shapes/bauhaus-flower@v2`\r\n- `sprinkle/shapes/bauhaus-cross@v2`\r\n- `sprinkle/shapes/bauhaus-eye@v2`\r\n- `sprinkle/shapes/bauhaus-face@v2` (fixed: the wink eyelid is placed over this face's eye)\r\n- `sprinkle/shapes/bauhaus-pill-dots@v2`\r\n- `sprinkle/shapes/bauhaus-steps@v2`\r\n- `sprinkle/shapes/bauhaus-wave@v2`\r\n- `sprinkle/shapes/bauhaus-tile@v2`\r\n\r\n## Customization\r\n\r\n- The train is generated for the panel size: it starts from the eye pair near the bottom and grows left (`BACK`) and right (`FORWARD`), up both sides. Each entry sets the art, tooth count, gear color, and `lift` (how far it sits in from the edge).\r\n- All gears share one tooth pitch (`PITCH`), so any two can mesh; the phase of each gear is computed so the teeth interlock.\r\n- On panels narrower than 640 px the side legs stop halfway up, leaving the top free for text.\r\n- Gear colors live in `COLORS` (light and dark); the art sits on a cream plate in both modes.\r\n",
  "sourceDir": "snippets/backgrounds/bauhaus-gear-train-background",
  "thumbnail": "/registry/thumbnails/backgrounds/bauhaus-gear-train-background.webp",
  "thumbnailDark": "/registry/thumbnails/backgrounds/bauhaus-gear-train-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."
}
