# Rolling Credits

Motionboard shot name: Release Credits

A column of credits rises on black: section headings with a short mint bar, each followed by role and name pairs split around a centre gutter. The roll runs at constant speed, slows to a stop, and the Release 3.0 line, the Juniper mark and the wordmark settle in the centre of the frame.

- Position in a launch film: Ending
- Slug: rolling-credits
- Preview video: https://media.motionboard.app/credits-roll.mp4
- Recipe page: https://motionboard.app/recipes/rolling-credits/
- 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 `credits-roll`. 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 10.6s. The first heading, Engineering, is at y=300px at 0s and the column rolls up at a constant speed of about 308px/s until 6.2s; from 6.2s to 8.2s (2.0s) the speed falls linearly to zero, about 308px of travel, and the roll stops at 8.2s with the lockup centred (about 2215px of travel in total); the names fade out 6.6–8.0s (1.4s); the mint glow behind the lockup rises 6.6–8.2s (1.6s); the tagline rises 7.3–8.0s (0.7s); the frame holds still from 8.2s to the end, 2.4s |
| Easing | The roll is one tween with a function ease: linear (constant speed) for the first 6.2/8.2 of its progress, then a linear velocity ramp to zero, a quadratic stop; names fade power1.inOut; glow power2.out; tagline expo.out; the film grain is redrawn from the timeline time 24 times per second |
| Camera | Locked camera with no zoom or tilt; only the 1920px-wide column moves up. It starts at y=300px and ends at y = 540 minus the centre of the lockup block (the block top is at 2240px in the column and it is 430px tall, so the end y is about −1915px). A mask on the layer is transparent above 5% of the frame height (54px), fully visible from 24% (259px) to 91%, and fades to transparent at the bottom edge |
| Subject | Five sections and 15 rows: Engineering (4 rows), Product (3), Design (3), Research (2) and Special thanks (3), 90px apart. Headings are Inter 700 at 76px on an 80px line, centred, letter-spacing −0.03em, with a 56x4px mint bar 14px below and a 130px heading block. Rows are 72px tall and 1920px wide, split at x=960 with 44px padding on each side (an 88px gutter): the role on the left in Inter 500 at 32px, `#878c96`, right-aligned; the name on the right in Inter 600 at 40px, `#f4f5f7`, left-aligned. The lockup block follows 150px after the last row: a RELEASE 3.0 line (Inter 600, 30px, tracking 0.3em, mint), a 104px mark, the wordmark Juniper at 156px, and the tagline Review the code that matters. at 40px |
| Sync | The names start to fade at 6.6s, 0.4s after the slowdown begins (6.2s), so the last rows are gone before the roll stops; the glow rises with the fade; the tagline appears at 7.3s while the column is still moving at about 45% of its constant speed, and everything is still from 8.2s, with only the grain moving |
| Style | Background `#09090b` with a faint mint wash at the top edge (6% opacity) and a dark centre gradient from `#0d0e12` to `#08080a`; one accent mint `#5ad1a0` (heading bars, the Release 3.0 line, the mark, the glow); Inter only; the mark is a 104px mint rounded square with a dark `#04130d` J-shaped hook and a dot at the top of the stem; grain at 7% opacity with screen blending and a vignette that reaches 55% black at the edges |

## Why it works

A constant speed is what makes a roll read as credits. Every name spends the same time on screen between entering at the bottom and leaving at the top, so the viewer can pace their reading, and the motion never competes with the names. Each row is split at a centre gutter: the role sits on the left, right-aligned in dim grey, and the name on the right, left-aligned in white, so the eye follows one vertical line of names and the roles stay secondary. Section headings are the largest type in the frame and carry a short accent bar, which gives the list a rhythm of heading, rows and space. A mask at the top and bottom fades rows as they enter and leave, so the column has no hard edges. The roll slows with a linear velocity ramp, the way a real roll comes to a stop, and the lockup is the last block of the same column, so the stop and the arrival of the product mark are one move. The names fade while the roll slows and a mint glow rises behind the lockup, which clears the frame for it. The only accent colour is mint #5ad1a0.

## Prompt

> Build a 10.6-second, 1920x1080, 30 fps dark film called Rolling Credits for a fictional product, Juniper (a code review tool), as the end credits of its 3.0 release. Background #09090b, one accent mint #5ad1a0, ink #f4f5f7, role grey #878c96, font Inter only.
>
> Background layers: a full-frame gradient (ellipse 90% x 80%, #0d0e12 to #08080a) with a faint mint ellipse at the top edge at 6% opacity, and above it a mint glow layer (ellipse 34% x 36% at the centre: mint at 16% opacity in the middle, 5% at 48%, 0 at the edge) that starts at opacity 0.
>
> Credits layer: full frame, with a vertical mask that is transparent above 5% of the frame height, fully visible from 24% to 91% and fades to transparent at the bottom edge. Inside it one column, 1920px wide, absolutely positioned at the top left and moved with a y transform. The column holds five sections 90px apart. Each starts with a centred heading block 130px tall: the heading in Inter 700 at 76px on an 80px line, letter-spacing -0.03em, and a 56x4px mint bar with 2px radius 14px under it. Then the rows: Engineering (Engineering lead / Priya Raman, Review engine / Tomas Eriksen, Diff rendering / Hana Okonkwo, Platform & infrastructure / Luis Valderrama), Product (Product lead / Rafael Mendes, Program management / Elise Hartmann, Release management / Kofi Mensah), Design (Product design / Camille Dufour, Interface motion / Jonas Weber, Brand identity / Aiko Tanabe), Research (Developer research / Nadia Haddad, Review quality / Owen Fitzgerald) and Special thanks (Beta program / Northwind & Kiln teams, Docs & support / Sofia Marchetti, Bug reports / All 4,200 early reviewers). Each row is a 72px-tall flex line of two 960px halves, no wrapping: the role on the left, right-aligned, 44px right padding, Inter 500 at 32px in #878c96; the name on the right, left-aligned, 44px left padding, Inter 600 at 40px in #f4f5f7, letter-spacing -0.012em.
>
> Lockup: the last block of the column, 150px after the final row, 430px tall, centred: a RELEASE 3.0 line (Inter 600, 30px, tracking 0.3em, uppercase, mint), a 104px mark 28px below (a mint rounded square with a dark #04130d J-shaped hook stroke 4.8 wide on a 48 viewBox and a round dot at the top of the stem), the wordmark Juniper 36px below (Inter 700, 156px on a 150px line, letter-spacing -0.045em) and the tagline Review the code that matters. 26px below (40px, 500, ink at 62% opacity, starting at opacity 0 and 14px low).
>
> Motion: one tween of the column's y from 300 (the Engineering heading starts at y=300px) to 540 minus the lockup block's centre (its offsetTop plus half its height, about 2455px, so the travel is about 2215px) over 8.2s, with a function ease: with a = 6.2/8.2 and s = 2/(1+a), progress p gives s*p for p <= a, then with q = (p-a)/(1-a) it gives s*a + s*(1-a)*(q - q*q/2). The names fade from 1 to 0 over 1.4s from 6.6s (power1.inOut), the glow rises to 1 over 1.6s from 6.6s (power2.out) and the tagline rises to its place over 0.7s from 7.3s (expo.out). The frame holds still from 8.2s to 10.6s.
>
> Finish: film grain on a 480x270 canvas scaled to full frame at 7% opacity with screen blending, redrawn from timeline time with a mulberry32 seed of 7000 + floor(t*24); a vignette (ellipse 80% x 85%, transparent to 54%, 55% black at the edge). Deterministic: one paused GSAP timeline, no CSS animations, no requestAnimationFrame; set start values with tl.set and animate with .to tweens that state their end values.

## Often confused with

- [Star Wars Text Crawl](https://motionboard.app/r/star-wars-text-crawl.md): Release Crawl tilts a justified block of text on a plane and shrinks it toward a vanishing point over stars; Rolling Credits is a flat column set in two halves around a centre gutter that slows to a stop on the lockup.
- [Scrolling Text Animation](https://motionboard.app/r/scrolling-text-animation.md): Ramble to Summary scrolls one line sideways, speeds it up and squeezes it into a message bubble; Rolling Credits moves a whole column of headings and role and name pairs up at a constant speed and slows into the lockup.

## Source files

Runnable HyperFrames project, 3 files.

- https://motionboard.app/source/credits-roll/hyperframes.json (318 B)
- https://motionboard.app/source/credits-roll/index.html (9.6 KB)
- https://motionboard.app/source/credits-roll/package.json (301 B)

Download all of them:

```sh
curl -fsSL --create-dirs -o "credits-roll/hyperframes.json" "https://motionboard.app/source/credits-roll/hyperframes.json"
curl -fsSL --create-dirs -o "credits-roll/index.html" "https://motionboard.app/source/credits-roll/index.html"
curl -fsSL --create-dirs -o "credits-roll/package.json" "https://motionboard.app/source/credits-roll/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 {
        --bg: #09090b;
        --ink: #f4f5f7;
        --dim: #878c96;
        --acc: #5ad1a0;
        --acc-ink: #04130d;
        --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: var(--bg); }
      #root {
        position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--bg);
        font-family: var(--font-ui); color: var(--ink); -webkit-font-smoothing: antialiased;
      }
      .full { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
      svg { display: block; flex: none; }

      /* ---------- backdrop ---------- */
      #bg {
        background:
          radial-gradient(ellipse 70% 46% at 50% 0%, rgba(90, 209, 160, 0.06) 0%, rgba(90, 209, 160, 0) 70%),
          radial-gradient(ellipse 90% 80% at 50% 50%, #0d0e12 0%, #08080a 100%);
      }
      #glow {
        background: radial-gradient(ellipse 34% 36% at 50% 50%, rgba(90, 209, 160, 0.16) 0%, rgba(90, 209, 160, 0.05) 48%, rgba(90, 209, 160, 0) 100%);
        opacity: 0;
      }

      /* ---------- credit roll ---------- */
      #crawl {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 5%, #000 24%, #000 91%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 5%, #000 24%, #000 91%, rgba(0,0,0,0) 100%);
      }
      #col { position: absolute; left: 0; top: 0; width: 1920px; }
      .sec { margin-top: 90px; }
      .sec:first-child { margin-top: 0; }
      .hd { height: 130px; text-align: center; }
      .hd h2 { font-size: 76px; line-height: 80px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
      .hd .bar { width: 56px; height: 4px; margin: 14px auto 0; border-radius: 2px; background: var(--acc); }
      .row { display: flex; width: 1920px; height: 72px; align-items: center; }
      .row .r { width: 960px; padding-right: 44px; text-align: right; font-size: 32px; line-height: 72px; font-weight: 500; color: var(--dim); letter-spacing: -0.005em; white-space: nowrap; }
      .row .n { width: 960px; padding-left: 44px; text-align: left; font-size: 40px; line-height: 72px; font-weight: 600; color: var(--ink); letter-spacing: -0.012em; white-space: nowrap; }

      /* ---------- lockup (last block of the column) ---------- */
      #lock { margin-top: 150px; height: 430px; display: flex; flex-direction: column; align-items: center; }
      #rel { height: 36px; font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: 0.3em; padding-left: 0.3em; color: var(--acc); text-transform: uppercase; }
      #mark { width: 104px; height: 104px; margin-top: 28px; }
      #wm { margin-top: 36px; height: 150px; font-size: 156px; line-height: 150px; font-weight: 700; letter-spacing: -0.045em; color: var(--ink); }
      #tg { margin-top: 26px; height: 50px; font-size: 40px; line-height: 50px; font-weight: 500; letter-spacing: -0.012em; color: rgba(244, 245, 247, 0.62); opacity: 0; }

      #grain { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0.07; mix-blend-mode: screen; pointer-events: none; }
      #vig { pointer-events: none; background: radial-gradient(ellipse 80% 85% at 50% 50%, rgba(0,0,0,0) 54%, rgba(0,0,0,0.55) 100%); }
    </style>
  </head>
  <body>
    <div id="root" data-composition-id="main" data-start="0" data-duration="10.6" data-width="1920" data-height="1080">
      <div id="bg" class="clip full" data-start="0" data-duration="10.6" data-track-index="0" data-layout-ignore></div>
      <div id="glow" class="clip full" data-start="0" data-duration="10.6" data-track-index="1" data-layout-ignore></div>

      <div id="crawl" class="clip full" data-start="0" data-duration="10.6" data-track-index="2" data-layout-allow-overlap>
        <div id="col" data-layout-allow-overlap data-layout-allow-overflow>
          <div id="names" data-layout-allow-overlap data-layout-allow-overflow>
            <div class="sec">
              <div class="hd"><h2>Engineering</h2><div class="bar"></div></div>
              <div class="row"><div class="r">Engineering lead</div><div class="n">Priya Raman</div></div>
              <div class="row"><div class="r">Review engine</div><div class="n">Tomas Eriksen</div></div>
              <div class="row"><div class="r">Diff rendering</div><div class="n">Hana Okonkwo</div></div>
              <div class="row"><div class="r">Platform &amp; infrastructure</div><div class="n">Luis Valderrama</div></div>
            </div>
            <div class="sec">
              <div class="hd"><h2>Product</h2><div class="bar"></div></div>
              <div class="row"><div class="r">Product lead</div><div class="n">Rafael Mendes</div></div>
              <div class="row"><div class="r">Program management</div><div class="n">Elise Hartmann</div></div>
              <div class="row"><div class="r">Release management</div><div class="n">Kofi Mensah</div></div>
            </div>
            <div class="sec">
              <div class="hd"><h2>Design</h2><div class="bar"></div></div>
              <div class="row"><div class="r">Product design</div><div class="n">Camille Dufour</div></div>
              <div class="row"><div class="r">Interface motion</div><div class="n">Jonas Weber</div></div>
              <div class="row"><div class="r">Brand identity</div><div class="n">Aiko Tanabe</div></div>
            </div>
            <div class="sec">
              <div class="hd"><h2>Research</h2><div class="bar"></div></div>
              <div class="row"><div class="r">Developer research</div><div class="n">Nadia Haddad</div></div>
              <div class="row"><div class="r">Review quality</div><div class="n">Owen Fitzgerald</div></div>
            </div>
            <div class="sec">
              <div class="hd"><h2>Special thanks</h2><div class="bar"></div></div>
              <div class="row"><div class="r">Beta program</div><div class="n">Northwind &amp; Kiln teams</div></div>
              <div class="row"><div class="r">Docs &amp; support</div><div class="n">Sofia Marchetti</div></div>
              <div class="row"><div class="r">Bug reports</div><div class="n">All 4,200 early reviewers</div></div>
            </div>
          </div>
          <div id="lock" data-layout-allow-overlap>
            <div id="rel">Release 3.0</div>
            <svg id="mark" viewBox="0 0 48 48"><rect width="48" height="48" rx="12" fill="#5ad1a0"/><path d="M30 13 V28 a8 8 0 0 1 -8 8 h-1 a8 8 0 0 1 -8 -8" stroke="#04130d" stroke-width="4.8" stroke-linecap="round" stroke-linejoin="round" fill="none"/><circle cx="30" cy="13" r="3.4" fill="#04130d"/></svg>
            <div id="wm">Juniper</div>
            <div id="tg">Review the code that matters.</div>
          </div>
        </div>
      </div>

      <canvas id="grain" class="clip" width="480" height="270" data-start="0" data-duration="10.6" data-track-index="3" data-layout-ignore></canvas>
      <div id="vig" class="clip full" data-start="0" data-duration="10.6" data-track-index="4" data-layout-ignore></div>
    </div>

    <script>
      /* ---------- seeded film grain, redrawn from timeline time ---------- */
      function rng(seed) {
        let a = seed >>> 0;
        return function () {
          a = (a + 0x6d2b79f5) >>> 0;
          let t = a;
          t = Math.imul(t ^ (t >>> 15), t | 1);
          t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
          return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
        };
      }
      const gctx = document.getElementById("grain").getContext("2d");
      const gimg = gctx.createImageData(480, 270);
      function grain(t) {
        const R = rng(7000 + Math.floor(t * 24));
        const d = gimg.data;
        for (let i = 0; i < d.length; i += 4) {
          const v = 90 + Math.floor(R() * 165);
          d[i] = v; d[i + 1] = v; d[i + 2] = v; d[i + 3] = 255;
        }
        gctx.putImageData(gimg, 0, 0);
      }
    </script>

    <script>
      window.__timelines = window.__timelines || {};
      const tl = gsap.timeline({ paused: true });
      const DUR = 10.6;
      const ROLL = 8.2;      // roll ends, lockup centred
      const CONST_T = 6.2;   // constant speed until here, then decelerates to a stop

      grain(0);
      tl.to({ v: 0 }, { v: 1, duration: DUR, ease: "none", onUpdate: () => grain(tl.time()) }, 0);

      // constant speed, then linear deceleration to zero velocity
      const a = CONST_T / ROLL;
      const spd = 2 / (1 + a);
      const rollEase = (p) => {
        if (p <= a) return spd * p;
        const q = (p - a) / (1 - a);
        return spd * a + spd * (1 - a) * (q - 0.5 * q * q);
      };

      // column geometry: stop with the lockup block centred in frame
      const LK = document.getElementById("lock");
      const lockCenter = LK.offsetTop + LK.offsetHeight / 2;
      const Y0 = 300, Y1 = 540 - lockCenter;

      tl.set("#col", { y: Y0 }, 0);
      tl.set("#names", { opacity: 1 }, 0);
      tl.set("#glow", { opacity: 0 }, 0);
      tl.set("#tg", { opacity: 0, y: 14 }, 0);

      tl.to("#col", { y: Y1, duration: ROLL, ease: rollEase }, 0);
      tl.to("#names", { opacity: 0, duration: 1.4, ease: "power1.inOut" }, 6.6);
      tl.to("#glow", { opacity: 1, duration: 1.6, ease: "power2.out" }, 6.6);
      tl.to("#tg", { opacity: 1, y: 0, duration: 0.7, ease: "expo.out" }, 7.3);

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