Skip to content
1.6 s · 1920×1080

Prompt to paste

For Claude or any other AI video tool, with room for your own copy and colours.

Build a 1920x1080 scene with the TNS motion component "Split-word stagger".

Source: https://tns.studio/downloads/split-word-stagger (one self-contained HTML file, 1.6 s, GSAP).

What it does: Each word slides up out of its own mask, one after another, and the last word lands in signal blue.
How to use it: Use for a punchy one-line statement of three to six words; the last word is the one that matters. Each word uses power4.out over 55% of the duration with up to a 90 ms stagger.
Change only these inputs: background, color, accent. Keep the timing, easing and stagger exactly as they are.

My copy and colours: [write them here]

Inputs

The only things to change. The timing stays as it is.

input default dark
background #ffffff #000000
color #000000 #ffffff
accent #2b1fd4 #2b1fd4

How to use it

Use for a punchy one-line statement of three to six words; the last word is the one that matters. Each word uses power4.out over 55% of the duration with up to a 90 ms stagger.

Code

component.js show
// Split-word stagger: each word slides up out of its own mask, one after another; the last word takes the accent. TNS original.
window.TNS_COMPONENT_V1 = ({ canvas, gsap, width, duration, inputs, exactCopy }) => {
  canvas.style.background = inputs.background;
  const line = document.createElement("div");
  line.dataset.copy = "";
  Object.assign(line.style, {
    position: "absolute",
    left: "0",
    right: "0",
    top: "50%",
    transform: "translateY(-50%)",
    display: "flex",
    justifyContent: "center",
    flexWrap: "nowrap",
    gap: "0 0.24em",
    color: inputs.color,
    font: `800 ${Math.round(width * 0.062)}px/1.08 Inter, "Helvetica Neue", Helvetica, Arial, sans-serif`,
    letterSpacing: "-0.035em",
  });
  const parts = exactCopy[0].split(/\s+/).filter(Boolean);
  const words = parts.map((part, index) => {
    const mask = document.createElement("span");
    Object.assign(mask.style, {
      display: "inline-block",
      overflow: "hidden",
      padding: "0.04em 0.02em 0.08em",
    });
    const word = document.createElement("span");
    word.textContent = part;
    Object.assign(word.style, {
      display: "inline-block",
      color: index === parts.length - 1 ? inputs.accent : inputs.color,
    });
    mask.append(word);
    line.append(mask);
    return word;
  });
  canvas.append(line);

  const each = duration * 0.55;
  const stagger =
    words.length > 1 ? Math.min(0.09, (duration * 0.9 - each) / (words.length - 1)) : 0;
  const timeline = gsap.timeline({ paused: true });
  timeline.fromTo(
    words,
    { yPercent: 112 },
    { yPercent: 0, duration: each, ease: "power4.out", stagger },
    0,
  );
  // Hold the last frame to the declared duration so the timeline matches it exactly.
  timeline.set({}, {}, duration);
  return timeline;
};

The downloaded HTML already includes it, with GSAP inlined, so it runs offline.

Want motion nobody else has?

These components are free because we love this stuff, but our real job is making launch films and content for startups (50+ so far, most of them YC). If you'd like motion that's made for your product and nobody else's, it's 30 minutes with the founders and you don't need a deck.