Opus Motion ★ Star on GitHub

Type · outline-to-fill-text

Outline to fill text

A headline appears as hollow outlined letters, then each letter floods with solid colour one after another — rising like liquid with a wavy surface or wiping up, down, left or right (optional top-to-bottom gradient) — and can drain back to an outline; long text wraps and shrinks to fit.

A free, MIT-licensed text animation from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Outline to fill text: three frames of the text animation, start, middle and end
Outline to fill text — start, middle and end of the 5.7-second motion.

What Outline to fill text is for

Bold website hero words, section titles, poster-style stat words, title cards and reel openers; works as a looping brand headline.

  • text
  • outline
  • fill
  • stroke
  • liquid
  • headline
  • title
  • hero
  • reveal
  • wipe
  • typography
  • kinetic
  • website
  • overlay
  • hollow

Details

Category
Text animations & kinetic typography
Length
5.7 s (170 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
text subtitle
Colour props
background outline fill subtitleColor
Mood
nature, playful, ui
Roles
type, accent

Use Outline to fill text in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add outline-to-fill-text --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render outline-to-fill-text --props '{"text":"Make it count","subtitle":"","background":"#0E0E12","outline":"#F4F0E6","fill":"#FF4D2E","subtitleColor":"#BDB8AA"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export outline-to-fill-text --as webm-alpha --props '{"text":"Make it count","subtitle":"","background":"#0E0E12","outline":"#F4F0E6","fill":"#FF4D2E","subtitleColor":"#BDB8AA"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="outline-to-fill-text"
  props={{
    text: 'Make it count',
    subtitle: '',
    background: '#0E0E12',
    outline: '#F4F0E6',
    fill: '#FF4D2E',
    subtitleColor: '#BDB8AA',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="outline-to-fill-text"
  props='{"text":"Make it count","subtitle":"","background":"#0E0E12","outline":"#F4F0E6","fill":"#FF4D2E","subtitleColor":"#BDB8AA"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "outline-to-fill-text",
      "props": {
        "text": "Make it count",
        "subtitle": "",
        "background": "#0E0E12",
        "outline": "#F4F0E6",
        "fill": "#FF4D2E",
        "subtitleColor": "#BDB8AA"
      }
    }
  ]
}

Outline to fill text props

21 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
text"Make it count"the headline (\n = forced break; wraps and shrinks to fit)
subtitle""optional small line under the headline
font"display"font role (heavy display faces read best)
size190max font size in u; shrinks to fit
weight400font weight
tracking0.01letter spacing in em
textCase"upper"upper | none
direction"up"wipe direction: up | down | left | right (liquid always rises)
surface"liquid"liquid (wavy rising surface) | wipe (hard straight edge)
fillDelay14frames after the outline appears before the first fill starts
stagger2.6frames between neighbouring letters starting to fill
fillFrames24frames one letter takes to fill
startAt6frame the outline starts appearing
cycle"fill-unfill"fill (stay filled) | fill-unfill (drain back to outline at the end)
holdFilled34frames the filled text holds before it drains
stroke0.03outline weight as a fraction of the font size
background"#0E0E12"background colour; "transparent" for an overlay
outline"#F4F0E6"outline colour
fill"#FF4D2E"fill colour
fill2""optional second colour: fill becomes a top-to-bottom gradient per letter ("" = solid)
subtitleColor"#BDB8AA"subtitle colour

Notes & credits

Technique sources:

  • original — generic kinetic-type effect (R3)