# Logo Carousel

A headline, Connects to the tools you already use., sits above two rows of white integration cards that rise in one by one. Then row 1 scrolls left and row 2 scrolls right at constant speed with soft fades at the edges, before the Hatch lockup.

- Position in a launch film: Transitions
- Slug: logo-carousel
- Preview video: https://media.motionboard.app/logo-marquee.mp4
- Recipe page: https://motionboard.app/recipes/logo-carousel/
- License: MIT. Free to use in your own projects, including commercial launch films. https://github.com/krisyangdev/motionboard/blob/main/LICENSE

## How to use this recipe

You are a coding agent. The user wants this shot for their own product. Follow these steps.

1. **Know the product.** If the product is clear from the user's repo or conversation, ask nothing and start. Otherwise ask once for: product name, logo file, brand colors.
2. **Pick the output.** If the user's message says a video or their website, do that. Otherwise ask once which one they want.
   - **Video (HyperFrames).** Create a folder named `logo-marquee`. Download every file under "Source files" below with the curl commands, keeping relative paths. Adapt `index.html` (see "What to adapt"). Run `npx --yes hyperframes@0.8.209 check` on the untouched copy first and note its result. Preview with `npx --yes hyperframes@0.8.209 preview`, render an MP4 with `npx --yes hyperframes@0.8.209 render` (into `renders/`, named with a timestamp). The same commands are in `package.json` as `dev`, `check`, `render`; pass flags after `--`, as in `npm run render -- --quality draft`. Rendering needs network access for web fonts and GSAP.
   - **Website motion.** Port the GSAP timeline in `index.html` into the user's site, using their stack (React, Vue, Svelte, plain HTML). Build the same DOM structure, keep the timeline's durations, delays and easings exactly, and start it when the element scrolls into view (IntersectionObserver or ScrollTrigger). Respect `prefers-reduced-motion: reduce`: show the final frame as a static state and skip the movement.
3. **What to adapt.**
   - **Brand layer** (product name, logo, colors, fonts, copy): replace directly with the user's.
   - **UI layer** (the product screens, cards, windows, controls shown in the shot): rebuild the user's real UI as clean DOM, from their codebase (components, design tokens) or from a screenshot used as reference only. Never paste a screenshot into the shot.
   - **Motion** (timing, easing, camera moves, layering, stagger, order of events): keep exactly as in the source. This is what the recipe is.
   - The timeline targets UI elements by id and class, and camera moves land on fixed coordinates. Keep the ids the timeline uses, keep row counts and text lengths close to the source, and when the layout moves, update the target coordinates without changing the times.
4. **Fonts.** HyperFrames fetches Google Fonts such as Inter on its own. Some sources use macOS local fonts (PingFang, Songti via `local()`). Use the user's brand font when it can be bundled; for a system font such as SF Pro, use Inter. Check that text still fits its boxes.
5. **Verify.** Compare the render with the preview video above at the beat times in the Timing row. The beats, timing and camera should match; only brand and UI content differ.

## Spec

| Item | Value |
| --- | --- |
| Timing | Film 11s. Headline line 1 rises 0.25–1.1s and line 2 0.4–1.25s; the 13 visible cards rise and fade in 1.2–2.7s, one every 0.06s with the rows alternating (0.7s each); scroll ramps up 2.7–3.3s and runs at constant speed 3.3–7.6s; headline fades out 7.0–7.55s and rows 7.0–7.6s; lockup mark 7.75s, wordmark 7.9s, tagline 8.1s, settled by 8.8s and held still to 11s |
| Easing | Headline and card rise use power3.out; scroll ramp uses power1.in over 0.6s and then none (linear) at 140px/s; exits use power2.in; lockup mark scale and wordmark slide use expo.out, mark fade power2.out, tagline power3.out |
| Camera | Locked camera, flat frontal view, no zoom. All motion is in the two rows: row 1 moves left, row 2 moves right, 140px/s each, 4.3s of constant speed plus a 0.6s ramp, about 640px of travel |
| Subject | Headline Connects to the tools / you already use. at 100px, weight 750, line height 110px, centred; two rows of white cards 260x110px with 24px corners and a 48px mark plus a 30px name (weight 650), 24px gap, 284px pitch, row 1 at y 570 and row 2 at y 708, first card at x 120 and row 2 shifted 142px; six cards per row (Northwind, Lumio, Parcel, Corvid, Fennel, Basalt / Quill, Tandem, Ferro, Mosaic, Kite, Ledgerly), each set repeated 4 times and wrapped by 1704px; 150px edge fades; lockup 140px mark, Hatch at 176px, tagline 48px |
| Sync | Cards land in an interleaved order, row 1 then row 2, 0.06s apart, so the wall fills like a wave; scroll starts only after the last visible card has settled at 2.7s; the headline leaves 0.05s before the rows, the rows leave before the mark appears at 7.75s, so the lockup never overlaps the scroll |
| Style | Paper background `#eceef1`, ink `#14161c`, one accent orange `#ff5a1f` used for the headline pair and the Hatch mark; white cards with a 1px `#e1e4ea` border and a soft two-layer shadow; Inter throughout; a light radial vignette; no grain |

## Why it works

Two rows moving in opposite directions at the same constant speed give the eye a reference and a contrast at once: row 1 goes left, row 2 goes right, and both stay linear so the motion reads as a machine running. The wall appears before it moves. The cards stagger in 0.06s apart and settle for a beat while the viewer reads the first names, and only then does the scroll start, so the two beats stay separate in a contact sheet. The loop is seamless because each row is the same six cards repeated four times and the position wraps by exactly one set width, 1704px, so the frame after the wrap is identical to the frame before it. Row 2 sits half a card off row 1, which keeps the two rows from lining up into a grid. Soft paper-coloured fades at both edges let cards enter and leave without a hard cut. The headline sits above the rows with a single accent word pair, already use., in orange #ff5a1f, and the rows and headline clear before the Hatch lockup so the scroll can be cut out on its own. All twelve marks are invented geometric shapes with invented names.

## Prompt

> Build an 11-second, 1920x1080, 30 fps light product film called Logo Carousel for a fictional product, Hatch (a workflow automation tool). Background paper #eceef1, text ink #14161c, secondary text #5a6070, one accent orange #ff5a1f, font Inter. Use HTML and one paused GSAP timeline; no CSS animations and no random numbers. Headline: two lines, Connects to the tools / you already use., 100px, weight 750, line height 110px, letter spacing -0.042em, centred at y 236 and 346, with already use. in the accent colour. Cards: white, 260x110px, 24px corners, 1px #e1e4ea border, shadow 0 1px 2px rgba(20,24,40,.06) plus 0 12px 28px rgba(20,24,40,.08); each holds a 48px invented geometric mark (inline SVG) and a 30px name, weight 650, 14px gap. Row 1: Northwind, Lumio, Parcel, Corvid, Fennel, Basalt. Row 2: Quill, Tandem, Ferro, Mosaic, Kite, Ledgerly. Never use real brand names or logos. Pitch 284px (260 card + 24 gap), so one set of six is W = 1704px; row 1 sits at y 570 and row 2 at y 708, the first card at x 120, and row 2 is shifted 142px. Build each row as 4 copies of its six cards inside one row element, so the row covers the frame at every offset. Timeline: headline line 1 rises from 46px below and fades in 0.25–1.1s, line 2 0.4–1.25s (power3.out). Cards start with opacity 0 in CSS and 48px below; from 1.2s they rise to y 0 and fade in over 0.7s (power3.out), ordered left to right by their position on screen, one card every 0.12s in each row with row 2 delayed another 0.06s, so the two rows interleave 0.06s apart; hidden copies off screen use the same tween. Then the scroll: use a proxy value s. Ramp s from 0 to 42 over 2.7–3.3s with power1.in, then from 42 to 42 + 140 x 4.3 over 3.3–7.6s with ease none, so the speed is a constant 140px/s. On every update set row 1 x = 120 - W + wrap(-s) and row 2 x = 120 - W + wrap(-142 + s), where wrap(v) = ((v mod W) + W) mod W - W, so row 1 moves left, row 2 moves right and the loop is seamless. Add 150px edge fades on both sides: gradients from #eceef1 (solid for the first 22%) to transparent, drawn above the rows. Clear the scene: headline lines fade and rise -30px over 0.5s with power2.in from 7.0s and 7.05s, rows fade over 0.5s from 7.0s and 7.1s. Lockup after the clear: a 140px rounded-square mark (34/132 corner ratio) in an orange gradient #ff7d42 to #ff4a12 with three white diagonal hatch strokes, 12px wide with round caps; Hatch at 176px, weight 750, letter spacing -0.055em; and the tagline Every tool, one flow. at 48px, weight 500, #5a6070. The mark scales 0.7 to 1 (expo.out, 0.8s) and fades in from 7.75s, the wordmark slides in from 36px left from 7.9s (expo.out, 0.8s), the tagline rises 22px and fades in from 8.1s (power3.out, 0.7s). Everything is settled by 8.8s and holds completely still until 11s. Add a light radial vignette on top and no film grain. Set every initial hidden state in CSS, give every tween explicit end values, and do not put a CSS transform on an element GSAP animates.

## Often confused with

- [Showcase Wall](https://motionboard.app/r/showcase-wall.md): Showcase Wall drifts one wall of cards diagonally and pushes into a single card; in Logo Carousel two rows of small logo cards scroll in opposite directions at constant speed and no card is singled out.
- [Prompt Carousel](https://motionboard.app/r/prompt-carousel.md): Prompt Carousel scrolls a list of typed prompts vertically inside an input box; in Logo Carousel the items are integration logos, they scroll sideways in two rows and they loop with no typing.

## Source files

Runnable HyperFrames project, 3 files.

- https://motionboard.app/source/logo-marquee/hyperframes.json (318 B)
- https://motionboard.app/source/logo-marquee/index.html (12.1 KB)
- https://motionboard.app/source/logo-marquee/package.json (301 B)

Download all of them:

```sh
curl -fsSL --create-dirs -o "logo-marquee/hyperframes.json" "https://motionboard.app/source/logo-marquee/hyperframes.json"
curl -fsSL --create-dirs -o "logo-marquee/index.html" "https://motionboard.app/source/logo-marquee/index.html"
curl -fsSL --create-dirs -o "logo-marquee/package.json" "https://motionboard.app/source/logo-marquee/package.json"
```

## index.html

```html
<!doctype html>
<html lang="en" data-resolution="landscape">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=1920, height=1080" />
    <script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script>
    <style>
      :root {
        --paper: #eceef1;
        --ink: #14161c;
        --sub: #5a6070;
        --line: #dfe2e8;
        --accent: #ff5a1f;
        --font-ui: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
      }
      * { margin: 0; padding: 0; box-sizing: border-box; }
      html, body { width: 1920px; height: 1080px; overflow: hidden; background: #eceef1; }
      #root {
        position: relative; width: 1920px; height: 1080px; overflow: hidden; background: #eceef1;
        font-family: var(--font-ui); color: var(--ink); -webkit-font-smoothing: antialiased;
      }
      .full { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      .a { position: absolute; }
      svg { display: block; flex: none; }

      /* ---------- headline ---------- */
      #head { z-index: 2; }
      .hl {
        position: absolute; left: 0; width: 1920px; text-align: center; white-space: nowrap;
        font-size: 100px; line-height: 110px; font-weight: 750; letter-spacing: -0.042em; color: var(--ink);
        opacity: 0;
      }
      .hl em { font-style: normal; color: var(--accent); }
      #h1 { top: 236px; }
      #h2 { top: 346px; }

      /* ---------- rows ---------- */
      #rows { z-index: 3; opacity: 1; }
      .row { position: absolute; left: 0; top: 0; width: 0; height: 110px; }
      #r1 { top: 570px; }
      #r2 { top: 708px; }
      .card {
        position: absolute; top: 0; width: 260px; height: 110px; border-radius: 24px; background: #fff;
        border: 1px solid #e1e4ea;
        box-shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 12px 28px rgba(20, 24, 40, 0.08);
        display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 22px;
        opacity: 0;
      }
      .card .nm { font-size: 30px; line-height: 36px; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); white-space: nowrap; }

      /* ---------- edge fades ---------- */
      #edges { z-index: 4; pointer-events: none; }
      .edge { position: absolute; top: 0; width: 150px; height: 1080px; }
      #eL { left: 0; background: linear-gradient(90deg, #eceef1 0%, #eceef1 22%, rgba(236, 238, 241, 0) 100%); }
      #eR { left: 1770px; background: linear-gradient(270deg, #eceef1 0%, #eceef1 22%, rgba(236, 238, 241, 0) 100%); }

      /* ---------- lockup ---------- */
      #end { z-index: 5; }
      #lockup {
        position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
        display: flex; align-items: center; justify-content: center; gap: 38px; padding-bottom: 90px;
      }
      #markwrap { position: relative; width: 140px; height: 140px; opacity: 0; }
      #wm { font-size: 176px; line-height: 190px; font-weight: 750; letter-spacing: -0.055em; color: var(--ink); padding-bottom: 14px; opacity: 0; }
      #tag {
        position: absolute; left: 0; width: 1920px; top: 650px; text-align: center;
        font-size: 48px; line-height: 60px; font-weight: 500; letter-spacing: -0.02em; color: var(--sub); opacity: 0;
      }
      #tag b { font-weight: 650; color: var(--ink); }

      #vig { z-index: 6; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(90, 100, 125, 0) 58%, rgba(90, 100, 125, 0.16) 100%); }
    </style>
  </head>
  <body>
    <div id="root" data-composition-id="main" data-start="0" data-duration="11" data-width="1920" data-height="1080">
      <div id="bg" class="clip full" data-start="0" data-duration="11" data-track-index="0"></div>

      <div id="head" class="clip full" data-start="0" data-duration="11" data-track-index="1" data-layout-ignore data-layout-allow-overlap>
        <div id="h1" class="hl">Connects to the tools</div>
        <div id="h2" class="hl">you <em>already use.</em></div>
      </div>

      <div id="rows" class="clip full" data-start="0" data-duration="11" data-track-index="2" data-layout-ignore data-layout-allow-overlap>
        <div id="r1" class="row"></div>
        <div id="r2" class="row"></div>
      </div>

      <div id="edges" class="clip full" data-start="0" data-duration="11" data-track-index="3" data-layout-ignore data-layout-allow-overlap>
        <div id="eL" class="edge"></div>
        <div id="eR" class="edge"></div>
      </div>

      <div id="end" class="clip full" data-start="0" data-duration="11" data-track-index="4" data-layout-ignore data-layout-allow-overlap>
        <div id="lockup">
          <div id="markwrap">
            <svg id="mk" width="140" height="140" viewBox="0 0 132 132">
              <defs>
                <linearGradient id="mg" x1="0" y1="0" x2="1" y2="1">
                  <stop offset="0" stop-color="#ff7d42" />
                  <stop offset="1" stop-color="#ff4a12" />
                </linearGradient>
              </defs>
              <rect width="132" height="132" rx="34" fill="url(#mg)" />
              <g stroke="#fff" stroke-width="12" stroke-linecap="round" fill="none">
                <path d="M34 88 L88 34" />
                <path d="M30 60 L60 30" />
                <path d="M58 102 L102 58" />
              </g>
            </svg>
          </div>
          <div id="wm">Hatch</div>
        </div>
        <div id="tag">Every tool, one flow.</div>
      </div>

      <div id="vig" class="clip full" data-start="0" data-duration="11" data-track-index="5" data-layout-ignore data-layout-allow-overlap></div>
    </div>

    <script>
      /* ---------- invented integration marks (48x48) ---------- */
      const LOGOS = [
        { n: "Northwind", s: '<rect width="48" height="48" rx="12" fill="#2f6bff"/><path d="M24 8 L35 38 L24 31 L13 38 Z" fill="#fff"/>' },
        { n: "Lumio", s: '<circle cx="24" cy="24" r="22" fill="#f6b21b"/><circle cx="24" cy="24" r="11.5" fill="#fff"/><path d="M24 12.5 a11.5 11.5 0 0 1 0 23 z" fill="#f6b21b"/>' },
        { n: "Parcel", s: '<path d="M24 3 L42 13.5 V34.5 L24 45 L6 34.5 V13.5 Z" fill="#10a37f"/><path d="M6 13.5 L24 24 L42 13.5 M24 24 V45" stroke="#fff" stroke-width="3" stroke-linejoin="round" fill="none"/>' },
        { n: "Corvid", s: '<circle cx="24" cy="24" r="22" fill="#1d2030"/><path d="M11 31 L24 11 L28.5 22 L37 17 L26 37 Z" fill="#fff"/>' },
        { n: "Fennel", s: '<path d="M7 41 C7 18 21 6 43 6 C43 29 30 43 7 41 Z" fill="#3aa85c"/><path d="M10 38 C20 28 28 22 37 13" stroke="#fff" stroke-width="3.2" stroke-linecap="round" fill="none"/>' },
        { n: "Basalt", s: '<path d="M24 3 L43 14 V34 L24 45 L5 34 V14 Z" fill="#454b5c"/><path d="M24 14 L33.5 19.5 V30.5 L24 36 L14.5 30.5 V19.5 Z" fill="#a3abc0"/>' },
        { n: "Quill", s: '<rect width="48" height="48" rx="12" fill="#7a4cff"/><path d="M24 8 L36 26 L24 40 L12 26 Z" fill="#fff"/><path d="M24 20 V34" stroke="#7a4cff" stroke-width="3" stroke-linecap="round"/><circle cx="24" cy="24" r="3" fill="#7a4cff"/>' },
        { n: "Tandem", s: '<circle cx="17" cy="24" r="14" fill="#ef476f"/><circle cx="31" cy="24" r="14" fill="#23315e" fill-opacity="0.92"/>' },
        { n: "Ferro", s: '<rect width="48" height="48" rx="12" fill="#e4572e"/><path d="M15 11 H35 V18.5 H23 V22.5 H31.5 V30 H23 V37 H15 Z" fill="#fff"/>' },
        { n: "Mosaic", s: '<rect x="3" y="3" width="19" height="19" rx="5" fill="#0e9aa7"/><rect x="26" y="3" width="19" height="19" rx="5" fill="#7bcad2"/><rect x="3" y="26" width="19" height="19" rx="5" fill="#7bcad2"/><rect x="26" y="26" width="19" height="19" rx="5" fill="#0e9aa7"/>' },
        { n: "Kite", s: '<path d="M24 3 L43 20 L24 45 L5 20 Z" fill="#e64980"/><path d="M24 3 V45 M5 20 H43" stroke="#fff" stroke-width="2.6" stroke-opacity="0.85" fill="none"/>' },
        { n: "Ledgerly", s: '<rect width="48" height="48" rx="12" fill="#1f3a8a"/><rect x="11" y="12" width="26" height="5" rx="2.5" fill="#fff"/><rect x="11" y="22" width="17" height="5" rx="2.5" fill="#fff"/><rect x="11" y="32" width="22" height="5" rx="2.5" fill="#fff"/>' }
      ];
      const ROW1 = LOGOS.slice(0, 6);
      const ROW2 = LOGOS.slice(6, 12);

      const PITCH = 284;            // card 260 + gap 24
      const W = PITCH * 6;          // one set of six cards
      const COPIES = 4;
      const LEFT = 120;             // first card of the resting layout
      const SPEED = 140;            // px per second, both rows
      const R2_SHIFT = 142;         // row 2 sits half a pitch off row 1

      const wrap = (v) => ((v % W) + W) % W - W;   // [-W, 0)

      function buildRow(rowEl, logos) {
        const cards = [];
        for (let c = 0; c < COPIES; c++) {
          for (let i = 0; i < logos.length; i++) {
            const d = document.createElement("div");
            d.className = "card";
            d.style.left = (c * W + i * PITCH) + "px";
            d.innerHTML = '<svg width="48" height="48" viewBox="0 0 48 48">' + logos[i].s + '</svg><div class="nm">' + logos[i].n + '</div>';
            rowEl.appendChild(d);
            cards.push({ el: d, k: c * logos.length + i, x0: c * W + i * PITCH });
          }
        }
        return cards;
      }

      const r1 = document.getElementById("r1");
      const r2 = document.getElementById("r2");
      const cards1 = buildRow(r1, ROW1);
      const cards2 = buildRow(r2, ROW2);

      // row element sits at left = LEFT - W + dx ; cards live inside at x0
      function applyRows(s) {
        gsap.set(r1, { x: LEFT - W + wrap(-s) });
        gsap.set(r2, { x: LEFT - W + wrap(-R2_SHIFT + s) });
      }
      const proxy = { s: 0 };
      applyRows(0);

      /* ---------- initial hidden / offset states ---------- */
      gsap.set("#h1, #h2", { y: 46 });
      gsap.set("#mk", { scale: 0.7, transformOrigin: "50% 50%" });
      gsap.set("#wm", { x: -36 });
      gsap.set("#tag", { y: 22 });
      cards1.concat(cards2).forEach((c) => gsap.set(c.el, { y: 48 }));

      /* ---------- timeline ---------- */
      const tl = gsap.timeline({ paused: true });

      // headline (0.25 - 1.2)
      tl.to("#h1", { opacity: 1, y: 0, duration: 0.85, ease: "power3.out" }, 0.25);
      tl.to("#h2", { opacity: 1, y: 0, duration: 0.85, ease: "power3.out" }, 0.4);

      // beat 1: logos stagger in, 0.06 s apart, rows interleaved (1.2 - 2.7)
      function stagger(cards, startX, extra) {
        const vis = cards
          .map((c) => ({ c, x: startX + c.x0 }))
          .filter((o) => o.x >= -40 && o.x < 1900)
          .sort((a, b) => a.x - b.x);
        const rank = new Map();
        vis.forEach((o, i) => rank.set(o.c, i));
        cards.forEach((c) => {
          const x = startX + c.x0;
          let r = rank.has(c) ? rank.get(c) : (x < -40 ? 0 : 7);
          tl.to(c.el, { opacity: 1, y: 0, duration: 0.7, ease: "power3.out" }, 1.2 + r * 0.12 + extra);
        });
      }
      stagger(cards1, LEFT - W + wrap(0), 0);
      stagger(cards2, LEFT - W + wrap(-R2_SHIFT), 0.06);

      // beat 2: endless scroll, constant speed after a short ramp (2.7 - 7.6)
      const RAMP_T = 0.6;
      const RAMP_D = SPEED * RAMP_T / 2;
      const T_END = 7.6;
      tl.fromTo(proxy, { s: 0 }, { s: RAMP_D, duration: RAMP_T, ease: "power1.in", immediateRender: false, onUpdate: () => applyRows(proxy.s) }, 2.7);
      tl.fromTo(proxy, { s: RAMP_D }, { s: RAMP_D + SPEED * (T_END - 2.7 - RAMP_T), duration: T_END - 2.7 - RAMP_T, ease: "none", immediateRender: false, onUpdate: () => applyRows(proxy.s) }, 2.7 + RAMP_T);

      // clear headline and rows (7.0 - 7.6)
      tl.to("#h1", { opacity: 0, y: -30, duration: 0.5, ease: "power2.in" }, 7.0);
      tl.to("#h2", { opacity: 0, y: -30, duration: 0.5, ease: "power2.in" }, 7.05);
      tl.to("#r1", { opacity: 0, duration: 0.5, ease: "power2.in" }, 7.0);
      tl.to("#r2", { opacity: 0, duration: 0.5, ease: "power2.in" }, 7.1);

      // lockup (7.75 - 8.7), then holds still to 11
      tl.to("#markwrap", { opacity: 1, duration: 0.5, ease: "power2.out" }, 7.75);
      tl.to("#mk", { scale: 1, duration: 0.8, ease: "expo.out" }, 7.75);
      tl.to("#wm", { opacity: 1, x: 0, duration: 0.8, ease: "expo.out" }, 7.9);
      tl.to("#tag", { opacity: 1, y: 0, duration: 0.7, ease: "power3.out" }, 8.1);

      tl.set({}, {}, 11);
      window.__timelines = window.__timelines || {};
      window.__timelines["main"] = tl;
    </script>
  </body>
</html>
```
