Opus Motion ★ Star on GitHub

Type · bouncing-ball-singalong

Bouncing-ball singalong

Lyrics or a slogan on a period cinema title card: a white ball hops from word to word on the beat along parabolic arcs, squashing as it lands, and every word lights up (outline to solid) the moment the ball touches it.

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

Bouncing-ball singalong: three frames of the text animation, start, middle and end
Bouncing-ball singalong — start, middle and end of the 7.0-second motion.

What Bouncing-ball singalong is for

Jingles, slogans, safety rhymes, karaoke captions, kids learning content; works over any backdrop motion (set `background` transparent-ish or pass `src`).

  • singalong
  • bouncing-ball
  • lyrics
  • karaoke
  • captions
  • title-card
  • rubber-hose
  • retro
  • 1930s
  • jingle
  • slogan
  • kids
  • rhyme
  • beat
  • highlight
  • squash

Details

Category
Text animations & kinetic typography
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
lines title
Colour props
ballColor textColor litColor background
Image props
src
Mood
pixel, editorial
Roles
type

Use Bouncing-ball singalong in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add bouncing-ball-singalong --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render bouncing-ball-singalong --props '{"lines":["SING ALONG WITH ME","EVERY WORD IN TIME"],"title":"Follow the bouncing ball","ballColor":"#F6F2E8","textColor":"#F4EFE3","litColor":"#FFF3C9","background":"#4A3A2A","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export bouncing-ball-singalong --as mp4 --props '{"lines":["SING ALONG WITH ME","EVERY WORD IN TIME"],"title":"Follow the bouncing ball","ballColor":"#F6F2E8","textColor":"#F4EFE3","litColor":"#FFF3C9","background":"#4A3A2A","src":""}'

React / Next.js

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

<MotionPlayer
  motion="bouncing-ball-singalong"
  props={{
    lines: ['SING ALONG WITH ME', 'EVERY WORD IN TIME'],
    title: 'Follow the bouncing ball',
    ballColor: '#F6F2E8',
    textColor: '#F4EFE3',
    litColor: '#FFF3C9',
    background: '#4A3A2A',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="bouncing-ball-singalong"
  props='{"lines":["SING ALONG WITH ME","EVERY WORD IN TIME"],"title":"Follow the bouncing ball","ballColor":"#F6F2E8","textColor":"#F4EFE3","litColor":"#FFF3C9","background":"#4A3A2A","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "bouncing-ball-singalong",
      "props": {
        "lines": [
          "SING ALONG WITH ME",
          "EVERY WORD IN TIME"
        ],
        "title": "Follow the bouncing ball",
        "ballColor": "#F6F2E8",
        "textColor": "#F4EFE3",
        "litColor": "#FFF3C9",
        "background": "#4A3A2A",
        "src": ""
      }
    }
  ]
}

Bouncing-ball singalong props

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

PropDefaultWhat it does
lines["SING ALONG WITH ME","EVERY WORD IN TIME"]lyric lines (replace the sample words)
title"Follow the bouncing ball"small heading on the card (empty = none)
cues[]optional frame of each word touch; empty = one hop per beat from bpm
bpm100beats per minute (one word per beat)
startAt30frame of the first touch
ballColor"#F6F2E8"ball colour
textColor"#F4EFE3"outline / unlit word colour
litColor"#FFF3C9"colour a touched word fills with
highlight"fill"'fill' (outline to solid) | 'brighten' (55 % to 100 %)
cardStyle"period"'period' (double-rule cinema card) | 'modern' (rounded dark card)
font"serif"'serif' (small-caps period serif) | 'limelight' (show caps) | 'sans'
background"#4A3A2A"backdrop colour (period style darkens it to a vignette)
src""optional backdrop image (public path), shown dimmed behind the card
graintruefilm grain
exittrueball hops off the card after the last word

Notes & credits

Technique sources:

  • lemo-opuscar styles/rubber-hose/STYLE.md §8 "bouncing-ball singalong", §4 title cards (MIT / CC BY 4.0, LemoLab); original implementation