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.

Installation
$ pnpm dlx shadcn@latest add @remocn/kinetic-center-build

How 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:

bash
npx shadcn@latest add @remocn/kinetic-center-build

Word 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: remotion from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Font: Geist Sans through the --font-geist-sans CSS 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 timing prop (from the remocn timeline helper) 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

tsx
// 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:

tsx
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

PropTypeDefault
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.

    Default88

  • fontSizenumber

    Font size in pixels

    Default72

  • fontWeightnumber

    CSS font-weight

    Default600

  • 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.