Tagline Justify
End card tagline for Remotion: words spring in one by one and lock into a justified poster block, one word in italic gradient serif, with a hairline and your logo beneath.
For the end of a video, when a tagline's words should spring in and lock into a justified poster block with one word in italic gradient serif and the logo under it, use Tagline Justify. It breaks the tagline into lines, scales each line so all of them fill the same width, springs the words in one after another, then draws a hairline and lands your logo beneath. Use it as the closing card of a launch or product video.
$ pnpm dlx shadcn@latest add @remocn/tagline-justifyHow to build this in Remotion
You don't need fitText() or fillTextBox() from @remotion/layout-utils plus a spring() per word. Install the component and pass the tagline and the word to highlight:
npx shadcn@latest add @remocn/tagline-justifyThe layout tries every way to break the words into a few lines (up to four) and keeps the one whose lines need the most similar sizes, with the highlight word on a large line and the block close to a 1.75:1 poster shape. Each line then gets the font size that makes it exactly the block's width, so the block is justified by scale, not by word spacing. Words land stagger frames apart, each on a spring() (damping 17, stiffness 170), then the hairline grows and the logo arrives.
Good to know
- Length: 112 frames of motion at 30 fps (224 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames,Sequencelengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotion,@remotion/google-fontsfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: loads Instrument Serif, Inter Tight and Manrope itself through
@remotion/google-fonts. PassfontFamilyto use your own face, and load that font in your project. - The highlight word is always Instrument Serif Italic filled with a warm orange-to-rose gradient (a deeper version on the light theme). The serif face and the gradient stops are not props: change the
loadSerifimport and theswirlcolors in the copied file.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { TaglineJustify } from "@/components/remocn/tagline-justify";
const TaglineJustifyScene = () => (
<TaglineJustify
text="Your launch deserves a film as good as the product."
highlight="film"
/>
);
export const RemotionRoot = () => (
<Composition
id="TaglineJustify"
component={TaglineJustifyScene}
durationInFrames={280}
fps={60}
width={1280}
height={720}
/>
);Words spring in one after another and the line breaks stretch and scale so every line fills the same width, like a justified column. The highlight word is set in serif italic and fills with a gradient, then a hairline and a logo land beneath. The default logo is the Remocn wordmark, so pass your own logo. It ships light and dark.
Props14
| Prop | Type | Default |
|---|---|---|
| words | string[]— Pre-split words; overrides text when given. | |
| text | string"Your launch deserves a film as good as the product." Tagline to justify; it is split on spaces. | |
| highlight | string"film" Word set in gradient serif italic. | |
| stagger | number6 Frames between words landing. | |
| logo | React.ReactNode— Logo node under the block; defaults to the Remocn wordmark. | |
| accent | string"#3B5BFD" Color of the short accent segment on the hairline. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Inter Tight" Typeface for the copy; the highlight word stays in the serif. Load the font in your project first. | |
| grain | booleantrue Film grain over the scene. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| theme | "dark" | "light""dark" Light or dark palette. | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
- wordsstring[]
Pre-split words; overrides text when given.
- textstring
Tagline to justify; it is split on spaces.
Default
"Your launch deserves a film as good as the product." - highlightstring
Word set in gradient serif italic.
Default
"film" - staggernumber
Frames between words landing.
Default
6 - logoReact.ReactNode
Logo node under the block; defaults to the Remocn wordmark.
- accentstring
Color of the short accent segment on the hairline.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy; the highlight word stays in the serif. Load the font in your project first.
Default
"Inter Tight" - grainboolean
Film grain over the scene.
Default
true - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - theme"dark" | "light"
Light or dark palette.
Default
"dark" - speednumber
Playback speed multiplier for the whole timeline.
Default
1
Common questions
How do I make a tagline's words spring in and lock into a justified block at the end of a video?
Install Tagline Justify with npx shadcn@latest add @remocn/tagline-justify and render <TaglineJustify text="Your launch deserves a film as good as the product." highlight="film" logo={<YourLogo />} />. Budget at least 112 frames at 30 fps (224 at 60 fps), plus a hold.
Can I choose where the lines break?
Not directly: the component picks the breaks that give the most even block. Pass words to control how the text is split into words, for example to keep two words together.
How do I replace the Remocn logo?
Pass any React node as logo, such as <Img src={staticFile("logo.svg")} />.
Related effects
- Column Reflow: a justified paragraph reflows as its column width changes.
- Word Stack: caps words push up into a poster stack, last one in serif italic.
- Parallax Lockup: a three-line headline with parallax depth.
- Poster Crop: text crops in tight, line by line, over ruled lines.