Opus Motion ★ Star on GitHub

UI · lesson-carousel

Lesson carousel

Course / playlist navigation: a bottom strip of lesson cards with isometric part thumbnails and labels like "3. READ A SENSOR ›", teal check badges popping on completed lessons, a teal outline on the active card, arrow buttons that slide the strip by three cards, and a cursor that clicks the next card. A big preview of the active lesson sits above the strip.

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

Lesson carousel: three frames of the UI animation, start, middle and end
Lesson carousel — start, middle and end of the 6.0-second motion.

What Lesson carousel is for

Course / playlist / step navigation in app promos; a chapter selector at the bottom of an explainer.

  • carousel
  • lessons
  • course
  • playlist
  • chapters
  • cards
  • strip
  • cursor
  • click
  • check-badge
  • progress
  • isometric
  • thumbnails
  • onboarding
  • ui
  • navigation
  • tutorial

Details

Category
UI & product mockup animations
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
items
Colour props
accent background
Mood
3d, playful, editorial, ui
Roles
subject

Use Lesson carousel in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render lesson-carousel --props '{"items":[{"label":"Blink an LED","thumb":"led"},{"label":"Press a button","thumb":"button"},{"label":"Read a sensor","thumb":"sensor"},{"label":"Spin a motor","thumb":"motor"},{"label":"Sweep a servo","thumb":"servo"},{"label":"Switch a light","thumb":"light"},{"label":"Drive a car","thumb":"car"},{"label":"Build a project","thumb":"board"}],"accent":"#21A69A","background":"#F4ECDB"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export lesson-carousel --as mp4 --props '{"items":[{"label":"Blink an LED","thumb":"led"},{"label":"Press a button","thumb":"button"},{"label":"Read a sensor","thumb":"sensor"},{"label":"Spin a motor","thumb":"motor"},{"label":"Sweep a servo","thumb":"servo"},{"label":"Switch a light","thumb":"light"},{"label":"Drive a car","thumb":"car"},{"label":"Build a project","thumb":"board"}],"accent":"#21A69A","background":"#F4ECDB"}'

React / Next.js

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

<MotionPlayer
  motion="lesson-carousel"
  props={{
    items: [
      {label: 'Blink an LED', thumb: 'led'},
      {label: 'Press a button', thumb: 'button'},
      {label: 'Read a sensor', thumb: 'sensor'},
      {label: 'Spin a motor', thumb: 'motor'},
      {label: 'Sweep a servo', thumb: 'servo'},
      {label: 'Switch a light', thumb: 'light'},
      {label: 'Drive a car', thumb: 'car'},
      {label: 'Build a project', thumb: 'board'},
    ],
    accent: '#21A69A',
    background: '#F4ECDB',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="lesson-carousel"
  props='{"items":[{"label":"Blink an LED","thumb":"led"},{"label":"Press a button","thumb":"button"},{"label":"Read a sensor","thumb":"sensor"},{"label":"Spin a motor","thumb":"motor"},{"label":"Sweep a servo","thumb":"servo"},{"label":"Switch a light","thumb":"light"},{"label":"Drive a car","thumb":"car"},{"label":"Build a project","thumb":"board"}],"accent":"#21A69A","background":"#F4ECDB"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "lesson-carousel",
      "props": {
        "items": [
          {
            "label": "Blink an LED",
            "thumb": "led"
          },
          {
            "label": "Press a button",
            "thumb": "button"
          },
          {
            "label": "Read a sensor",
            "thumb": "sensor"
          },
          {
            "label": "Spin a motor",
            "thumb": "motor"
          },
          {
            "label": "Sweep a servo",
            "thumb": "servo"
          },
          {
            "label": "Switch a light",
            "thumb": "light"
          },
          {
            "label": "Drive a car",
            "thumb": "car"
          },
          {
            "label": "Build a project",
            "thumb": "board"
          }
        ],
        "accent": "#21A69A",
        "background": "#F4ECDB"
      }
    }
  ]
}

Lesson carousel props

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

PropDefaultWhat it does
items[{"label":"Blink an LED","thumb":"led"},{"label":"Press a button","thumb":"button"},{"l…array of {label, thumb}; thumb = part kind: board led button sensor motor servo light car wall resistor breadboard ball
start1index of the initially active lesson
activeAt[48,140]frames at which the cursor clicks the next lesson (active moves +1, previous gets a check)
scrollAt[94]frames at which the cursor clicks the right arrow and the strip scrolls
scrollBy3cards per scroll
completed[0]indices that already carry the check badge
accent"#21A69A"teal accent (outline, badge)
cursortrueshow the cursor that clicks
background"#F4ECDB"paper colour
heading"Basics"heading word at the top left
previewtrueshow the large preview of the active lesson above the strip
visible0cards visible in the strip (0 = auto: 5 landscape, 3 portrait)

Notes & credits

Technique sources:

  • video x8 0:00.9, 0:06.7-0:07.0, 0:20.1, 0:29, 0:37.9, 0:53.7