Opus Motion ★ Star on GitHub

UI · cursor-driver

Cursor driver (operated UI)

A pointer glides on bowed ease-in-out hops, presses with a 0.88x squash and a ripple ring, drags a slider and types into a field, so UI demos look operated. With the demo card on, the settings UI reacts to it (field text, slider, toggle, save button); with `demo:false` and a transparent background it is a pure overlay for your own keys.

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

Cursor driver (operated UI): three frames of the UI animation, start, middle and end
Cursor driver (operated UI) — start, middle and end of the 10.0-second motion.

What Cursor driver (operated UI) is for

Every UI demo, SaaS launch, tutorial and app preview: lay it over browser-mockup / device-mockup / ui-shape-morph with keys in % of the frame; key host reactions off `cursorEvents(keys)`.

  • cursor
  • pointer
  • mouse
  • click
  • drag
  • type
  • typing
  • ripple
  • ui demo
  • saas
  • tutorial
  • app preview
  • walkthrough
  • overlay
  • screen recording
  • hand
  • touch

Details

Category
UI & product mockup animations
Length
10.0 s (300 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
color rippleColor accent background
Mood
ui
Roles
accent, subject

Use Cursor driver (operated UI) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render cursor-driver --props '{"color":"#111111","rippleColor":"#4F5BD5","accent":"#4F5BD5","background":"#EDEBE7"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export cursor-driver --as webm-alpha --props '{"color":"#111111","rippleColor":"#4F5BD5","accent":"#4F5BD5","background":"#EDEBE7"}'

React / Next.js

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

<MotionPlayer
  motion="cursor-driver"
  props={{
    color: '#111111',
    rippleColor: '#4F5BD5',
    accent: '#4F5BD5',
    background: '#EDEBE7',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="cursor-driver"
  props='{"color":"#111111","rippleColor":"#4F5BD5","accent":"#4F5BD5","background":"#EDEBE7"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "cursor-driver",
      "props": {
        "color": "#111111",
        "rippleColor": "#4F5BD5",
        "accent": "#4F5BD5",
        "background": "#EDEBE7"
      }
    }
  ]
}

Cursor driver (operated UI) props

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

PropDefaultWhat it does
keys[][{frame (arrival), x, y (% of frame), action:'move'|'click'|'drag'|'type', text?, target?}] — empty = the built-in demo track
style"arrow"'arrow' | 'hand' | 'touch'
color"#111111"cursor fill colour
size34cursor height in u
rippleColor"#4F5BD5"click ripple colour
demotruedraw the reactive demo settings card under the cursor
demoText"hello@northwind.co"text typed into the demo field
cardTitle"Notification settings"demo card heading
cardSubtitle"Where should we send your weekly summary?"demo card sub line
fieldPlaceholder"you@company.com"grey placeholder in the demo field before typing
sliderLabel"Frequency"label of the demo slider ("<label> · N <unit>")
sliderUnit"days"unit word after the slider value
sliderMin1slider value at the left end
sliderMax30slider value at the right end
toggleLabel"Product updates"label of the demo toggle
buttonLabel"Save changes"demo button label before the click
savedLabel"Saved ✓"demo button label after the click
accent"#4F5BD5"demo UI accent
background"#EDEBE7"canvas colour; 'transparent' for overlay use
darkfalsedark demo card

Notes & credits

Technique sources:

  • prompt-corpus: cursor-driver (36 cases)
  • awesome-opus5-5-videos prompts (MIT) — technique only