Kinetic Center Build
Word-by-word centered headline for Remotion: each word slides in from the right and pushes the previous words left, so the short phrase ends up centered on screen.
In Remotion, Kinetic Center Build makes each word of a headline slide in from the right and push the previous words left, so the short phrase ends up centered on screen. Use it for a punchy title of two to six words in a launch or promo video.
$ pnpm dlx shadcn@latest add @remocn/kinetic-center-buildHow to build this in Remotion
You don't need fitText, @remotion/layout-utils or a per-word spring() for this. Install the component and pass the text:
npx shadcn@latest add @remocn/kinetic-center-buildWord widths are measured once on a canvas with measureText(), the centered position of every prefix is precomputed, and each word's slide is an element in timeline.ts eased with interpolate() over an Easing.bezier curve. Everything moves through transform, so the line never reflows.
Good to know
- Length: 60 frames of motion at 30 fps (120 at 60 fps) with the default props. The first word lands over 10 frames and each later word starts 13 frames after the one before, so a four-word line finishes around frame 49. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate.
- Installs:
remotionfrom npm, plus the remocn helpersglide,frame-rate,timeline. The shadcn CLI copies the source into your project. - Font: Geist Sans through the
--font-geist-sansCSS variable, set inline; change it in the copied file. Widths are measured with a system sans stack, so a very different face may sit slightly off center. - Stagger: there is no stagger prop, but the component takes a
timingprop (from the remocntimelinehelper) that moves or stretches each word. - Keep it to six words or fewer: on longer lines the re-centering on every word becomes distracting.
- The background is transparent; put your own scene behind it.
Usage
// src/Root.tsx
import { Composition } from "remotion";
import { KineticCenterBuild } from "@/components/remocn/kinetic-center-build";
const KineticCenterBuildScene = () => (
<KineticCenterBuild text="Words push left." entryOffset={88} />
);
export const RemotionRoot = () => (
<Composition
id="KineticCenterBuild"
component={KineticCenterBuildScene}
durationInFrames={120}
fps={60}
width={1280}
height={720}
/>
);Each word lands centered, then the next word slides in from the right and pushes the line left so the growing phrase stays centered at every step — reads as one kinetic line build, best for short three-word phrases.
This is a layout-aware effect — it measures word widths to keep the line centered, so it works best with short headings.
With Backdrop
The component renders transparent — supply the background via Backdrop. It ships single-theme; edit the copied file to re-theme colors.
Pair with Backdrop to place the text inside a full-frame fill with a rounded, shadowed content frame:
import { Composition } from "remotion";
import { KineticCenterBuild } from "@/components/remocn/kinetic-center-build";
import { Backdrop } from "@/components/remocn/backdrop";
const KineticCenterBuildScene = () => (
<Backdrop fill={{ type: "color", value: "#ffffff" }}>
<KineticCenterBuild text="Words push left." entryOffset={88} />
</Backdrop>
);
export const RemotionRoot = () => (
<Composition
id="KineticCenterBuild"
component={KineticCenterBuildScene}
durationInFrames={120}
fps={60}
width={1280}
height={720}
/>
);Props6
| Prop | Type | Default |
|---|---|---|
| textrequired | string— The phrase to build, word by word. Best with short three-word phrases. | |
| entryOffset | number88 How far in pixels each incoming word starts to the right before pushing the line. | |
| fontSize | number72 Font size in pixels | |
| fontWeight | number600 CSS font-weight | |
| color | string"#171717" Text color (any valid CSS color) | |
| className | string— Optional className passed to the phrase container | |
- textrequiredstring
The phrase to build, word by word. Best with short three-word phrases.
- entryOffsetnumber
How far in pixels each incoming word starts to the right before pushing the line.
Default
88 - fontSizenumber
Font size in pixels
Default
72 - fontWeightnumber
CSS font-weight
Default
600 - colorstring
Text color (any valid CSS color)
Default
"#171717" - classNamestring
Optional className passed to the phrase container
Common questions
How do I make each word slide in from the right and push the others left, ending centered?
Install Kinetic Center Build with npx shadcn@latest add @remocn/kinetic-center-build and pass text.
Can I change the timing per word?
Yes, through the timing prop, which moves, trims or stretches each word's slide.
Related effects
- Line-by-Line Slide: multi-line text sliding in line by line.
- Word Push: each new word drives the existing line aside.
- Centered Word Build: words pop in from below and the phrase pushes closer.
- Mask Reveal Up: lines rising from a mask.