Opus Motion ★ Star on GitHub

UI · command-palette-type

Command palette typing

A dot grows into a search / prompt bar, a caret types the query with jittered keystrokes while matching suggestions stagger in and filter themselves, Enter presses the bar (scale 0.97 plus an accent glow), the list collapses and a result card slides in and streams its answer with tag chips.

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

Command palette typing: three frames of the UI animation, start, middle and end
Command palette typing — start, middle and end of the 9.0-second motion.

What Command palette typing is for

AI products, search tools and SaaS demos: the "user types a prompt and gets an answer" shot. Pairs with cursor-driver and ui-shape-morph.

  • command palette
  • search
  • prompt
  • typing
  • caret
  • autocomplete
  • suggestions
  • spotlight
  • ai
  • chat
  • saas
  • demo
  • result card
  • streaming
  • ui
  • ask

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
accent
Mood
ui
Roles
subject

Use Command palette typing in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render command-palette-type --props '{"accent":"#7c8cff"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export command-palette-type --as mp4 --props '{"accent":"#7c8cff"}'

React / Next.js

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

<MotionPlayer
  motion="command-palette-type"
  props={{accent: '#7c8cff'}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="command-palette-type"
  props='{"accent":"#7c8cff"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "command-palette-type",
      "props": {
        "accent": "#7c8cff"
      }
    }
  ]
}

Command palette typing props

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

PropDefaultWhat it does
placeholder"Search or ask anything"placeholder text shown in the empty bar
query"summarize the q3 roadmap"the typed text
suggestions["Summarize the Q3 roadmap","Summarize the meeting notes","Summarize this week in revie…suggestion rows; rows that stop matching the typed words collapse away
resultTitle"Q3 roadmap, summarized"result card title
resultBody"Three themes shape the quarter: faster onboarding, a calmer dashboard and an API that …result text, streamed in
resultTags["Roadmap","Q3","Draft"]chips under the result
resultImage""optional thumbnail for the result (public/ path or URL)
theme"dark"'dark' | 'light'
accent"#7c8cff"caret / highlight / glow colour
background""page colour (empty = theme default)
typeStart40frame typing begins
charFrames2.5frames per character (2-3 feels human)
enterGap16frames between the last character and Enter

Notes & credits

Technique sources:

  • prompt corpus x18 (prompt bar types, suggestions filter, enter -> result card)