Opus Motion ★ Star on GitHub

Type · counting-objects

Counting objects

Kid-friendly counting: cute faced shapes (stars, hearts, apples, balloons, fish ...) pop into a ten-frame grid one by one while a big number and its word count up in step, then the set waves and the total is announced with confetti.

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

Counting objects: three frames of the text animation, start, middle and end
Counting objects — start, middle and end of the 12.0-second motion.

What Counting objects is for

Early-years maths and number-recognition videos, kids' app promos, preschool lessons and "how many?" social posts — pass the count, the shape, the unit word and your colours.

  • counting
  • numbers
  • kids
  • children
  • preschool
  • maths
  • math
  • early years
  • shapes
  • education
  • school
  • learning
  • count
  • ten frame
  • cute

Details

Category
Text animations & kinetic typography
Length
12.0 s (360 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
title
Colour props
colors background ink accent card
Mood
nature, playful, night
Roles
type, accent

Use Counting objects in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render counting-objects --props '{"title":"Let'\''s count!","colors":["#FF6B6B","#FFB020","#2EC4B6","#4D96FF","#9B5DE5"],"background":"#FFF6E5","ink":"#2B2A4C","accent":"#FF6B6B","card":"#FFFFFF"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export counting-objects --as webm-alpha --props '{"title":"Let'\''s count!","colors":["#FF6B6B","#FFB020","#2EC4B6","#4D96FF","#9B5DE5"],"background":"#FFF6E5","ink":"#2B2A4C","accent":"#FF6B6B","card":"#FFFFFF"}'

React / Next.js

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

<MotionPlayer
  motion="counting-objects"
  props={{
    title: 'Let\'s count!',
    colors: ['#FF6B6B', '#FFB020', '#2EC4B6', '#4D96FF', '#9B5DE5'],
    background: '#FFF6E5',
    ink: '#2B2A4C',
    accent: '#FF6B6B',
    card: '#FFFFFF',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="counting-objects"
  props='{"title":"Let&#39;s count!","colors":["#FF6B6B","#FFB020","#2EC4B6","#4D96FF","#9B5DE5"],"background":"#FFF6E5","ink":"#2B2A4C","accent":"#FF6B6B","card":"#FFFFFF"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "counting-objects",
      "props": {
        "title": "Let's count!",
        "colors": [
          "#FF6B6B",
          "#FFB020",
          "#2EC4B6",
          "#4D96FF",
          "#9B5DE5"
        ],
        "background": "#FFF6E5",
        "ink": "#2B2A4C",
        "accent": "#FF6B6B",
        "card": "#FFFFFF"
      }
    }
  ]
}

Counting objects props

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

PropDefaultWhat it does
count7how many objects to count (1-40)
shape"star"star | circle | heart | apple | balloon | square | triangle | flower | fish
colors["#FF6B6B","#FFB020","#2EC4B6","#4D96FF","#9B5DE5"]colours cycled across the objects (also tints the number box)
title"Let's count!"heading shown while counting
unitLabel"stars"what is being counted, plural (used in doneText)
doneText"{n} {unit}!"heading after the last object; {n} = the count, {unit} = unitLabel
numberWords["one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve"…number words for 1, 2, 3 ... (translate for other languages)
showWordstrueshow the number word under the number
facestruegive each object a smiling face
perRow5objects per row in the grid (5 = ten-frame style)
interval0frames between pops (0 = auto-fit to the clip)
background"#FFF6E5"backdrop colour or 'transparent'
ink"#2B2A4C"text, face and outline colour
accent"#FF6B6B"completion heading colour
card"#FFFFFF"number box colour before counting starts
fontFamily""optional CSS font-family for the number and headings (empty = display)
startAt0frame the lesson starts
speed1playback speed multiplier

Notes & credits

Technique sources:

  • original (round 3)