Font Cycle

Font roulette for Remotion: one word flips rapidly through many typefaces, each labeled with its font name, then lands on the final font. For branding beats.

In Remotion, Font Cycle makes one word flip rapidly through lots of different typefaces, each labeled with its font name, then slow down and land on the final font with a gradient sheen. Use it for a branding beat, a type or customization pitch, or any moment where the chosen typeface is the reveal.

Installation
$ pnpm dlx shadcn@latest add @remocn/font-cycle

How to build this in Remotion

You don't have to build a font list with getAvailableFonts() and swap it frame by frame. Install the component and pass your word:

bash
npx shadcn@latest add @remocn/font-cycle

The word is a single element whose face changes on a schedule from timeline.ts that starts fast and slows down; the settle and the sheen run on interpolate() with Easing curves. Each face's width is measured on a canvas while delayRender() holds the first frame, so the guides and label stay aligned as the face changes.

Good to know

  • Length: 102 frames of motion at 30 fps (204 at 60 fps) with the default props. The demo plays 130 frames, which adds a hold: frames past the end of the motion hold the final frame. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate.
  • Installs: remotion, @remotion/google-fonts from npm, plus the remocn helpers glide, frame-rate, timeline. The shadcn CLI copies the source into your project.
  • Fonts: loads its default faces itself through @remotion/google-fonts: Instrument Serif, JetBrains Mono, Playfair Display Italic, Oswald, Fredoka, Bricolage Grotesque and Syne in the cycle, and Manrope for the final face.
  • Brand fonts: pass fonts and final as FontCycleFace objects, { family, label, weight?, style?, tracking? }. Load each family in your project first, for example with loadFont() from @remotion/google-fonts/<Family>, and pass the fontFamily it returns as family; label is the name shown under the word.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { FontCycle } from "@/components/remocn/font-cycle";
 
const FontCycleScene = () => (
  <FontCycle word="Shipped" passes={2} showLabel />
);
 
export const RemotionRoot = () => (
  <Composition
    id="FontCycle"
    component={FontCycleScene}
    durationInFrames={260}
    fps={60}
    width={1280}
    height={720}
  />
);

The word swaps through the fonts list for passes rounds, starting fast and slowing, with the font name shown as a small label under it. It then lands in the final face with a small settle and a gradient sheen while the guides fade. Pass word, and custom fonts or final only if their font families are already loaded in your project; it ships light and dark through theme.

Props15

PropTypeDefault
word
string"Launch"

The word that cycles through the typefaces.

fonts
FontCycleFace[]DEFAULT_FONTS

Faces to cycle through; each needs a loaded family and a label.

final
FontCycleFaceFINAL_FACE

Face the word settles into at the end.

passes
number2

How many times the font list is cycled.

showLabel
booleantrue

Show each font's name under the word.

beat
number3

Frames each face shows at full pace; the start and end of the cycle stretch from it.

guides
booleantrue

Show the baseline and cap-height guides behind the word.

accent
string"#3B5BFD"

Color of the label dot once the word lands.

ink
string—

Text color; overrides the theme ink.

background
string—

Background fill; pass "transparent" to drop it.

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.

grain
booleantrue

Film grain over the scene.

theme
"dark" | "light""dark"

Ships light and dark.

speed
number1

Playback speed multiplier.

  • wordstring

    The word that cycles through the typefaces.

    Default"Launch"

  • fontsFontCycleFace[]

    Faces to cycle through; each needs a loaded family and a label.

    DefaultDEFAULT_FONTS

  • finalFontCycleFace

    Face the word settles into at the end.

    DefaultFINAL_FACE

  • passesnumber

    How many times the font list is cycled.

    Default2

  • showLabelboolean

    Show each font's name under the word.

    Defaulttrue

  • beatnumber

    Frames each face shows at full pace; the start and end of the cycle stretch from it.

    Default3

  • guidesboolean

    Show the baseline and cap-height guides behind the word.

    Defaulttrue

  • accentstring

    Color of the label dot once the word lands.

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Background fill; pass "transparent" to drop it.

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Ships light and dark.

    Default"dark"

  • speednumber

    Playback speed multiplier.

    Default1

Common questions

How do I make one word flip through different typefaces in Remotion, each labeled with its name?

Install Font Cycle with npx shadcn@latest add @remocn/font-cycle and pass word. It cycles the faces in fonts for passes rounds with the font name under the word (showLabel), then lands in the final face.

Can I cycle through my own brand fonts?

Yes. Load them in your project, then pass them as fonts and final objects with family and label.

How long does the cycle take?

102 frames at 30 fps (204 at 60 fps) with the defaults. beat and passes change how many swaps it makes.

  • Axis Flex: one variable font flexing in width and weight instead of different faces.
  • Case Flip: the casing changes instead of the typeface.
  • Focus Blur Resolve: the word just lands, with no cycling.
  • Shed Weight: one line repeated at growing sizes, each with its own optical weight.