Lower Third 1
A name-and-role lower third on one solid band plate that grows in over talking-head footage, counts up the credential and holds to the end; the speaker's introduction at the Turn beat of a sales video, VSL or ad.
Use it in a prompt
Use the video/lower-third video frame from the FunnelDNA library in my brand (landscape and vertical). Follow the video skill. Ask me for the script facts, voice and images you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/video/lower-third.tsx. - Import it and pass your copy and images (Props tab):
import { LowerThird } from "@/components/funneldna/video/lower-third"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/video/lower-third/component.tsx 210 lines
// When to use: A name-and-role lower third on one solid band plate that grows in over talking-head footage, counts up the credential and holds to the end; the speaker's introduction at the Turn beat of a sales video, VSL or ad.
import * as React from "react"
import { useVideoConfig } from "remotion"
import {
EASE, HOLD, IN_OUT, KenBurns, SPRINGS, T, VideoStage, countText, cue, display, progress, springAt,
useFitText, useHeld, useStage, useWords,
type VideoFormat, type VideoMeta, type Word,
} from "../fx/video-kit"
export const video = { fps: 30, durationInFrames: 150, formats: ["landscape", "vertical"], poster: 120 } satisfies VideoMeta
/** plate: name and role on one band plate · block: the same plate led by a square accent tile with the initials. */
export type LowerThirdStyle = "plate" | "block"
export type LowerThirdProps = {
format?: VideoFormat
durationInFrames?: number
/** The speaker's real name. Nothing renders when it is empty. */
name?: string
/** Their real role or credential, one short line (about 22 characters reads best in 9:16, e.g. "Pricing coach · 14 yrs"). A number in it counts up from zero as the plate opens. In 9:16 a longer role wraps to a second line rather than shrinking under 44px. */
role?: string
/** A phrase inside `role` (usually the number) that steps to the accent fill on the frame it is spoken. */
highlight?: string
/** The look: one plate (default), or the plate led by an initials tile. */
style?: LowerThirdStyle
/** Which lower corner it sits in (landscape); in 9:16 the plate spans the safe width and `side` sets its alignment and grow edge. */
side?: "left" | "right"
/** Leave in reverse before the final hold. Off by default: the plate stays on through the hold. */
exit?: boolean
/** With `exit`: frames it stays fully on before leaving; default: on until the exit just before the final hold. */
holdFrames?: number
/** Initials for the block style; default: the first letters of the name's first and last words. */
initials?: string
/** Voice timings for the scene: the plate opens just before the name is said, the highlight steps when it is said. */
words?: Word[]
/** Footage still behind the overlay (pass slot("scene", …)); a slow pull-out in natural colour. In a clip the talking head sits behind instead. */
scene?: string
/** Photo focal point (CSS object-position). */
focus?: string
}
/** Frames the optional exit takes (role first, then the name, then the plate), ending where the final hold begins. */
const EXIT = 10
/** The vertical format's title-safe edges (VIDEO_FORMATS.vertical.safe), in stage px. */
const SAFE_X = 60
/** Every number in `t` counted at progress k, padded with figure spaces so the line never changes width. */
const counted = (t: string, k: number) => t.replace(/\d[\d,]*(\.\d+)?/g, (m) => countText(m, k).padStart(m.length, "\u2007"))
function monogram(name: string) {
const w = name.split(/\s+/).filter(Boolean)
if (!w.length) return ""
const first = Array.from(w[0])[0] ?? ""
const last = w.length > 1 ? Array.from(w[w.length - 1])[0] ?? "" : ""
return (first + last).toUpperCase()
}
/** Lower third: one band plate grows from the screen edge, the name rises in, the role row opens under it and its number counts up, then it holds. */
export function LowerThird({
format = "landscape", durationInFrames = video.durationInFrames, name = "", role = "", highlight, style: look = "plate",
side = "left", exit = false, holdFrames, initials, words, scene, focus = "60% 40%",
}: LowerThirdProps) {
const f = useHeld(durationInFrames)
const { fps } = useVideoConfig()
const { u, width, portrait, text } = useStage()
const s = (n: number) => n * u
const D = durationInFrames
const left = side !== "right"
const block = look === "block"
const hasRole = !!role
const voice = useWords("", words, D)
// Re-composed per format. Landscape: the plate hugs its text from the corner margin, capped at the wide container.
// 9:16: a broad plate spanning 90% of the safe width, centred, just above the caption band, with phone-sized type
// (name 100px, role 56px; the role never goes under 44px: it wraps to a second line instead).
const nameMax = portrait ? 100 : 84
const roleMax = portrait ? 56 : 48
const roleMin = portrait ? 44 : 40
const padY = s(portrait ? 36 : 28), padX = s(portrait ? 52 : 44)
const rowGap = s(portrait ? 12 : 10)
const tileGap = s(portrait ? 30 : 26)
const plateW = portrait ? 0.9 * (width - s(2 * SAFE_X)) : Math.min(s(1120), width - 2 * text.left)
const edge = portrait ? (width - plateW) / 2 : text.left
const tileGuess = block ? s(nameMax * 1.08) + (hasRole ? rowGap + s(roleMax * 1.25) : 0) : 0
const innerW = plateW - 2 * padX - (block ? tileGuess + tileGap : 0)
// Measured in the theme's own faces: the name fills the plate on one line; the role on one line (two in 9:16 before it would shrink).
const nameRef = React.useRef<HTMLHeadingElement>(null)
const roleRef = React.useRef<HTMLDivElement>(null)
const nameSize = useFitText(nameRef, name, {
boxW: innerW, boxH: s(nameMax * 1.2), guess: s(nameMax), max: s(nameMax), min: s(Math.round(nameMax * 0.78)), lines: [1],
})
const roleSize = useFitText(roleRef, role, {
boxW: innerW - s(roleMax * 0.3), boxH: s(roleMax * (portrait ? 2.35 : 1.4)), guess: s(roleMax), max: s(roleMax), min: s(roleMin),
lines: portrait ? [1, 2] : [1],
})
const tile = nameSize * 1.08 + (hasRole ? rowGap + roleSize * 1.25 : 0)
// Time: in on the name (or frame 2), the role opens, the number counts, then it holds.
const inAt = Math.min(Math.max(0, D - HOLD - 48), Math.max(0, cue(voice, name, 8) - 6))
const grow = progress(f, inAt, inAt + 8, IN_OUT)
const nameIn = progress(f, inAt + 3, inAt + 11)
const roleIn = progress(f, inAt + 9, inAt + 19)
const countAt = inAt + 12
const count = progress(f, countAt, countAt + 26, EASE)
const tileK = springAt(f, inAt + 4, fps, SPRINGS.firm)
const lastExit = D - HOLD - EXIT
// Without `exit` the out-ramps start past the scene's end, so they never run.
const exitAt = !exit ? D : holdFrames === undefined ? lastExit : Math.min(lastExit, inAt + 20 + Math.max(0, Math.round(holdFrames)))
const roleOut = progress(f, exitAt, exitAt + 6, IN_OUT)
const nameOut = progress(f, exitAt + 2, exitAt + 8, IN_OUT)
const shrink = progress(f, exitAt + 3, exitAt + EXIT, IN_OUT)
const plate = grow * (1 - shrink)
const nameV = nameIn * (1 - nameOut)
const roleV = roleIn * (1 - roleOut)
const stepAt = Math.min(D - HOLD - 1, Math.max(countAt + 26, cue(voice, highlight, countAt + 28)))
const stepped = !!highlight && f >= stepAt
// The footage stand-in: a slow pull-out (1.12 to 1.0) on the scene still, in its natural colour, as the camera would show it.
const sceneLayer = scene ? (
<div aria-hidden style={{ position: "absolute", inset: 0, overflow: "hidden" }}>
<KenBurns src={scene} frame={f} dur={D - HOLD} from={1.12} to={1} position={focus} />
</div>
) : null
if (!name) return <VideoStage format={format} tone="transparent">{sceneLayer}</VideoStage>
// Only with `exit`: once it has left, the footage is clean.
if (exit && f >= exitAt + EXIT) return <VideoStage format={format} tone="transparent">{sceneLayer}</VideoStage>
const align = left ? "left" : "right"
const r = `calc(var(--radius, 12px) * ${(1.4 * u).toFixed(3)})`
// The plate grows from its outer edge (the screen edge it sits on), rounded at every frame.
const x = `${((1 - plate) * 100).toFixed(3)}%`
const clip = left ? `inset(0 ${x} 0 0 round ${r})` : `inset(0 0 0 ${x} round ${r})`
// Crisp, dark, close: a contact layer plus a short ambient layer, both read straight from the theme's shadow token
// (the dark recipe is the var() fallback, so Original gets the same shadow).
const lift = `drop-shadow(0 ${s(2)}px ${s(3)}px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.38)) drop-shadow(0 ${s(14)}px ${s(18)}px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.3))`
const piece = (t: string, k: number, live: boolean) => {
const at = highlight ? t.indexOf(highlight) : -1
if (at < 0 || !highlight) return counted(t, k)
const on = live && stepped
return (
<>
{counted(t.slice(0, at), k)}
<span style={{
padding: "0.02em 0.16em 0.06em", borderRadius: `calc(var(--radius, 12px) * ${(0.5 * u).toFixed(3)})`, whiteSpace: "nowrap",
fontWeight: 800, background: on ? T.accentFill : "transparent", color: on ? T.accentFillInk : "inherit",
}}>{counted(highlight, k)}</span>
{counted(t.slice(at + highlight.length), k)}
</>
)
}
// The final line sizes the box, so the count never nudges the plate's width.
const roleBody = (
<span style={{ display: "inline-grid", textAlign: align }}>
<span aria-hidden style={{ gridArea: "1 / 1", visibility: "hidden" }}>{piece(role, 1, false)}</span>
<span style={{ gridArea: "1 / 1" }}>{piece(role, count, true)}</span>
</span>
)
const anchor: React.CSSProperties = {
position: "absolute", bottom: text.bottom + s(portrait ? 48 : 56), ...(left ? { left: edge } : { right: edge }),
width: portrait ? plateW : undefined, maxWidth: plateW, filter: lift,
}
return (
<VideoStage format={format} tone="transparent">
{sceneLayer}
<div style={anchor}>
<div style={{
boxSizing: "border-box", width: portrait ? "100%" : undefined, display: "flex", flexDirection: left ? "row" : "row-reverse",
alignItems: "center", gap: tileGap, padding: `${padY}px ${padX}px`, background: T.band, color: T.bandInk, borderRadius: r, clipPath: clip,
boxShadow: `inset 0 ${s(2)}px 0 oklch(from var(--band) calc(l + 0.07) c h / 0.55), inset 0 0 0 ${s(1.5)}px oklch(from var(--band-ink) l c h / 0.08)`,
}}>
{block && (
<div aria-hidden style={{
width: tile, height: tile, flex: "none", display: "grid", placeItems: "center",
borderRadius: `calc(var(--radius, 12px) * ${(0.9 * u).toFixed(3)})`, background: T.accentFill, color: T.accentFillInk,
transform: `scale(${(0.6 + 0.4 * tileK).toFixed(4)})`, opacity: Math.min(1, tileK * 1.6) * (1 - nameOut),
}}>
<span style={display(tile * 0.4, { lineHeight: 1, letterSpacing: "-0.01em" })}>{initials ?? monogram(name)}</span>
</div>
)}
<div style={{ display: "flex", flexDirection: "column", alignItems: left ? "flex-start" : "flex-end", minWidth: 0, flex: portrait ? "1 1 auto" : undefined, textAlign: align }}>
{/* In: a short rise from below inside its own clip; out (optional): lifts away upward. */}
<div style={{ overflow: "clip", fontSize: nameSize, padding: "0.08em 0.1em 0.16em", margin: "-0.08em -0.1em -0.16em" }}>
<h2 ref={nameRef} style={{
...display(nameSize, { lineHeight: 1.08 }), margin: 0, maxWidth: innerW, whiteSpace: "nowrap", textAlign: align, opacity: nameV,
transform: `translateY(${((1 - nameIn) * 45 - nameOut * 50).toFixed(3)}%)`,
}}>{name}</h2>
</div>
{/* The role row opens as it arrives, so the plate grows with its content and never shows empty. */}
{hasRole && (
<div style={{ display: "grid", gridTemplateRows: `${roleV.toFixed(4)}fr` }}>
<div style={{ minHeight: 0, overflow: "clip" }}>
<div ref={roleRef} style={{
paddingTop: rowGap, maxWidth: innerW, fontFamily: "var(--font-body)", fontSize: roleSize, fontWeight: 600, lineHeight: 1.25, textWrap: "balance",
textAlign: align, fontVariantNumeric: "tabular-nums", opacity: roleV, transform: `translateY(${((1 - roleV) * 14 * u).toFixed(2)}px)`,
}}>{roleBody}</div>
</div>
</div>
)}
</div>
</div>
</div>
</VideoStage>
)
}
export default LowerThird
pieces/video/lower-third/specimen.tsx 37 lines
import __studioImage0e9301da from "../assets/bedabfdf638d1891.webp";
import * as React from "react"
import { slot } from "../../slots"
import { VideoPreview, type VideoFormat } from "../../fx/video-kit"
import { LowerThird, video, type LowerThirdProps } from "../lower-third"
export const states = ["landscape", "vertical"]
/** Name fully in (plate grown), role row opening, full (count landed, highlight stepped), final hold (plate still on). */
export const keyframes = [13, 18, 70, 149]
// Fictional sample: Maren Okafor, pricing coach at Ratecard Studio (an invented business for freelance designers).
// The role is kept short so it reads on one line at 56px on a phone. Serialisable props only; the footage still is
// resolved through the scene slot in the render below.
export const sample: LowerThirdProps = {
name: "Maren Okafor",
role: "Pricing coach · 14 yrs",
highlight: "14 yrs",
style: "plate",
side: "left",
focus: "64% 38%",
}
/** The sample business in its own colours and type (sample-palettes.md: lime-zest · warm-serif); Original and every preset stay one click away. */
export const sampleBrand = {
name: "Ratecard Studio",
theme: "light",
background: "#ffffff",
colors: ["#5b2bd6", "#142033"],
fonts: ["Fraunces", "Nunito Sans"],
button: "square",
band: "#d8f26b",
}
export default function LowerThirdSpecimen({ state = "landscape" }: { state?: string }) {
const scene = slot("scene", __studioImage0e9301da)
return <VideoPreview component={LowerThird} props={{ ...sample, scene }} format={state as VideoFormat} meta={video} />
}
| Name | Type | Details |
|---|---|---|
format OptionalLowerThird |
VideoFormat |
Default "landscape"
|
durationInFrames OptionalLowerThird |
number |
Default video.durationInFrames
|
name OptionalLowerThird |
string |
Default ""
|
role OptionalLowerThird |
string |
Default ""
|
highlight OptionalLowerThird |
string |
|
style OptionalLowerThird |
LowerThirdStyle |
Default "plate"
|
side OptionalLowerThird |
"left" | "right" |
Default "left"
|
exit OptionalLowerThird |
boolean |
Default false
|
holdFrames OptionalLowerThird |
number |
|
initials OptionalLowerThird |
string |
|
words OptionalLowerThird |
Word[] |
|
scene OptionalLowerThird |
string |
|
focus OptionalLowerThird |
string |
Default "60% 40%"
|
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
None listed in this pack.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
bedabfdf638d1891.webp
image/webp · 59.7 KB