Skip to content
2.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 "End card with URL underline".

Source: https://tns.studio/downloads/end-card-url-underline (one self-contained HTML file, 2.6 s, GSAP).

What it does: The closing line rises out of its mask, the web address fades up beneath it and a signal-blue underline sweeps under the address from left to right.
How to use it: Use as the last 2-3 seconds of a film. exactCopy[0] is the closing line, exactCopy[1] the web address. Headline power4.out over 36% of the duration; the underline sweeps with expo.inOut over 34% from 46%.
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 as the last 2-3 seconds of a film. exactCopy[0] is the closing line, exactCopy[1] the web address. Headline power4.out over 36% of the duration; the underline sweeps with expo.inOut over 34% from 46%.

Code

component.js show
// End card with URL underline: the closing line rises, then an accent underline sweeps under the address. 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 column = document.createElement("div");
  Object.assign(column.style, {
    position: "absolute",
    left: "50%",
    top: "50%",
    transform: "translate(-50%, -50%)",
    display: "flex",
    flexDirection: "column",
    alignItems: "center",
    gap: `${Math.round(height * 0.055)}px`,
    textAlign: "center",
  });
  const mask = document.createElement("div");
  Object.assign(mask.style, { overflow: "hidden", padding: "0.04em 0.1em 0.1em" });
  const headline = document.createElement("div");
  headline.dataset.copy = "";
  headline.textContent = exactCopy[0];
  Object.assign(headline.style, {
    color: inputs.color,
    font: `800 ${Math.round(width * 0.054)}px/1.05 ${font}`,
    letterSpacing: "-0.035em",
    whiteSpace: "nowrap",
  });
  mask.append(headline);
  const link = document.createElement("div");
  Object.assign(link.style, {
    position: "relative",
    paddingBottom: `${Math.round(height * 0.014)}px`,
  });
  const url = document.createElement("div");
  url.dataset.copy = "";
  url.textContent = exactCopy[1];
  Object.assign(url.style, {
    color: inputs.color,
    font: `400 ${Math.round(width * 0.026)}px/1.2 ${font}`,
    letterSpacing: "0.01em",
    whiteSpace: "nowrap",
  });
  const underline = document.createElement("div");
  Object.assign(underline.style, {
    position: "absolute",
    left: "0",
    right: "0",
    bottom: "0",
    height: `${Math.max(4, Math.round(height * 0.005))}px`,
    background: inputs.accent,
    transformOrigin: "0% 50%",
  });
  link.append(url, underline);
  column.append(mask, link);
  canvas.append(column);

  const d = duration;
  const timeline = gsap.timeline({ paused: true });
  timeline
    .fromTo(headline, { yPercent: 110 }, { yPercent: 0, duration: d * 0.36, ease: "power4.out" }, 0)
    .fromTo(
      url,
      { opacity: 0, y: height * 0.015 },
      { opacity: 1, y: 0, duration: d * 0.28, ease: "power3.out" },
      d * 0.24,
    )
    .fromTo(
      underline,
      { scaleX: 0 },
      { scaleX: 1, duration: d * 0.34, ease: "expo.inOut" },
      d * 0.46,
    );
  // 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.