Skip to content
2.0 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 "Lower third with underline sweep".

Source: https://tns.studio/downloads/lower-third-underline (one self-contained HTML file, 2.0 s, GSAP).

What it does: The name rises out of its mask, a signal-blue underline sweeps under it and the role fades up below. No plate, so it sits lightly over footage.
How to use it: Use for an on-screen name and role over calm footage. exactCopy[0] is the name, exactCopy[1] the role. The background input is for preview only. Name power4.out over 40% of the duration; underline expo.inOut over 36% from 18%; role power3.out from 36%.
Change only these inputs: background, color, muted, 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 #e6e6e6 #2a2a2a
color #000000 #ffffff
muted #5c5c5c #b8b8b8
accent #2b1fd4 #2b1fd4

How to use it

Use for an on-screen name and role over calm footage. exactCopy[0] is the name, exactCopy[1] the role. The background input is for preview only. Name power4.out over 40% of the duration; underline expo.inOut over 36% from 18%; role power3.out from 36%.

Code

component.js show
// Lower third with underline sweep: the name rises, an accent underline sweeps under it, the role follows. TNS original.
window.TNS_COMPONENT_V1 = ({ canvas, gsap, width, height, duration, inputs, exactCopy }) => {
  canvas.style.background = inputs.background;
  const font = 'Inter, "Helvetica Neue", Helvetica, Arial, sans-serif';
  const unit = Math.round(height * 0.01);
  const group = document.createElement("div");
  Object.assign(group.style, {
    position: "absolute",
    left: `${Math.round(width * 0.07)}px`,
    bottom: `${Math.round(height * 0.12)}px`,
  });
  const mask = document.createElement("div");
  Object.assign(mask.style, { overflow: "hidden", paddingBottom: "0.06em" });
  const name = document.createElement("div");
  name.dataset.copy = "";
  name.textContent = exactCopy[0];
  Object.assign(name.style, {
    color: inputs.color,
    font: `800 ${unit * 6}px/1.05 ${font}`,
    display: "inline-block",
    letterSpacing: "-0.03em",
    whiteSpace: "nowrap",
  });
  mask.append(name);
  const underline = document.createElement("div");
  Object.assign(underline.style, {
    height: `${Math.round(unit * 0.6)}px`,
    margin: `${unit * 1.2}px 0 ${unit * 1.4}px`,
    background: inputs.accent,
    transformOrigin: "0% 50%",
  });
  const role = document.createElement("div");
  role.dataset.copy = "";
  role.textContent = exactCopy[1];
  Object.assign(role.style, {
    color: inputs.muted,
    font: `400 ${Math.round(unit * 2.8)}px/1.2 ${font}`,
    letterSpacing: "0.02em",
    whiteSpace: "nowrap",
  });
  group.append(mask, underline, role);
  canvas.append(group);
  // The underline matches the name, not the (possibly longer) role.
  underline.style.width = `${name.offsetWidth}px`;

  const d = duration;
  const timeline = gsap.timeline({ paused: true });
  timeline
    .fromTo(name, { yPercent: 110 }, { yPercent: 0, duration: d * 0.4, ease: "power4.out" }, 0)
    .fromTo(
      underline,
      { scaleX: 0 },
      { scaleX: 1, duration: d * 0.36, ease: "expo.inOut" },
      d * 0.18,
    )
    .fromTo(
      role,
      { opacity: 0, y: unit * 1.2 },
      { opacity: 1, y: 0, duration: d * 0.34, ease: "power3.out" },
      d * 0.36,
    );
  // 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.