Opus Motion ★ Star on GitHub

UI · talking-head-pip

Talking head PiP

The speaker (your video, or a built-in presenter stand-in) starts full-frame then shrinks into a circular or rounded picture-in-picture in a corner with an accent ring, while B-roll cards slide through the main frame and captions stay clear of the window.

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

Talking head PiP: three frames of the UI animation, start, middle and end
Talking head PiP — start, middle and end of the 9.0-second motion.

What Talking head PiP is for

Course videos, creator explainers, product walkthroughs with a host; pair with caption-style motions for subtitles.

  • picture in picture
  • pip
  • talking head
  • speaker
  • host
  • creator
  • course
  • b-roll
  • captions
  • circle
  • video
  • explainer
  • webcam
  • presenter
  • ui
  • safe zone

Details

Category
UI & product mockup animations
Length
9.0 s (270 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
ringColor background accent ink
Mood
photo, editorial, ui
Roles
subject

Use Talking head PiP in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render talking-head-pip --props '{"ringColor":"#FFC933","background":"#10131F","accent":"#3E6BFF","ink":"#FFFFFF"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export talking-head-pip --as mp4 --props '{"ringColor":"#FFC933","background":"#10131F","accent":"#3E6BFF","ink":"#FFFFFF"}'

React / Next.js

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

<MotionPlayer
  motion="talking-head-pip"
  props={{
    ringColor: '#FFC933',
    background: '#10131F',
    accent: '#3E6BFF',
    ink: '#FFFFFF',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="talking-head-pip"
  props='{"ringColor":"#FFC933","background":"#10131F","accent":"#3E6BFF","ink":"#FFFFFF"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "talking-head-pip",
      "props": {
        "ringColor": "#FFC933",
        "background": "#10131F",
        "accent": "#3E6BFF",
        "ink": "#FFFFFF"
      }
    }
  ]
}

Talking head PiP props

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

PropDefaultWhat it does
videoSrc""speaker footage (public/ path or URL); empty = built-in presenter stand-in
videoStartFrom0frame to start the footage from
mutedfalsemute the footage audio
scenes[{"title":"The big idea","caption":"Start with one clear promise."},{"title":"How it wo…[{title, image?, caption?}] B-roll cards shown in turn (image = public/ path, else a procedural illustration)
corner"bottom-right"bottom-right | bottom-left | top-right | top-left
shape"circle"circle | rounded
diameter0.26PiP size as a fraction of the short side (0.22-0.28)
margin0.045corner margin as a fraction of the short side
shrinkAt36frame the speaker starts shrinking into the corner
ring5accent ring width in px
ringColor"#FFC933"accent ring colour
background"#10131F"background colour
accent"#3E6BFF"colour behind the stand-in presenter
ink"#FFFFFF"caption text colour
captionstrueshow captions (kept clear of the PiP)
speakerName""optional small name tag by the PiP

Notes & credits

Technique sources:

  • prompt-corpus: awesome-opus5-5-videos (MIT) — talking-head + B-roll cases (5), original implementation