UI · ai-chat-streaming
AI chat streaming
A generic AI assistant chat: the prompt types into the input bar and sends as a bubble, a thinking indicator bounces, then the answer streams in token by token with a block cursor, **bold** and `code` styling, a stop pill and a token / time readout.
A free, MIT-licensed UI animation from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

What AI chat streaming is for
AI assistant / copilot / chatbot promos, "how LLMs generate text" explainers, prompt-and-response demos, support-bot and agent product videos. Swap prompt, answer and names for any product.
Details
- Category
- UI & product mockup animations
- Length
- 11.0 s (330 frames at 30 fps)
- Formats
- 16:9, 1:1, 9:16
- Weight
- light
- Transparent overlay
- yes
- Seamless loop
- no
- Text props
- —
- Colour props
backgroundpanelinkaccentaccent2- Mood
- playful, ui
- Roles
- subject
Use AI chat streaming in Remotion, React or HTML
Remotion project
# copy this motion into your Remotion project
node cli/mgl.mjs add ai-chat-streaming --to ../my-app/src
# render an mp4 (run in the library folder)
node cli/mgl.mjs render ai-chat-streaming --props '{"background":"#0C0F16","panel":"#151A25","ink":"#EAEFF8","accent":"#4C8DFF","accent2":"#B07CFF"}'
# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export ai-chat-streaming --as webm-alpha --props '{"background":"#0C0F16","panel":"#151A25","ink":"#EAEFF8","accent":"#4C8DFF","accent2":"#B07CFF"}'React / Next.js
import {MotionPlayer} from 'opus-motion-library/web';
<MotionPlayer
motion="ai-chat-streaming"
props={{
background: '#0C0F16',
panel: '#151A25',
ink: '#EAEFF8',
accent: '#4C8DFF',
accent2: '#B07CFF',
}}
playOnView
loop="auto"
/>Plain HTML / WordPress
<script src="opus-motion.element.js" defer></script>
<opus-motion motion="ai-chat-streaming"
props='{"background":"#0C0F16","panel":"#151A25","ink":"#EAEFF8","accent":"#4C8DFF","accent2":"#B07CFF"}'>
</opus-motion>Compose spec (multi-scene video)
{
"width": 1920,
"height": 1080,
"fps": 30,
"scenes": [
{
"motion": "ai-chat-streaming",
"props": {
"background": "#0C0F16",
"panel": "#151A25",
"ink": "#EAEFF8",
"accent": "#4C8DFF",
"accent2": "#B07CFF"
}
}
]
}AI chat streaming props
16 parameters — change any of them to make the motion yours.
| Prop | Default | What it does |
|---|---|---|
userName | "You" | name of the person (reserved label) |
assistantName | "Assistant" | assistant name shown in the header and over the answer |
prompt | "Explain how a hash table works in two sentences." | the user message (typed into the input bar, then sent) |
answer | "A hash table stores **key–value pairs** in an array of buckets. A hash function turns … | the assistant reply; use **bold**, `code` and \n for line breaks |
placeholder | "Message the assistant…" | input bar placeholder text |
tokensPerSecond | 24 | average streaming speed |
showStats | true | show the token / time readout when the answer ends |
thinkingFrames | 26 | frames of the thinking indicator before the first token |
speed | 1 | timing multiplier |
startAt | 0 | frame the chat starts |
background | "#0C0F16" | page colour or 'transparent' |
panel | "#151A25" | chat window colour |
ink | "#EAEFF8" | text colour |
accent | "#4C8DFF" | user bubble / cursor colour |
accent2 | "#B07CFF" | assistant avatar colour |
fontFamily | "" | text font override (empty = Inter) |
Related motions

Chat with typing indicator
Support-bot, AI-assistant and messaging product demos, "talk to us" website sections, onboarding conversations, any "someone is typing…"…
typing-indicator-chat
Command palette typing
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-type
Agent log panel
Showing agent reasoning or chat history next to the action; multi-agent demos, customer-support and simulation promos; overlay-capable.
agent-log-panel
Chat bubbles, chips & thought bubble
Conversations, user feedback / comments, "what people are asking", a character thinking back over its day, verdict reveals.
chat-bubbles
Glass UI cards
AI-assistant demos, app feature films and website heroes that want a translucent, premium UI look.
glass-ui-cards
SMS thread on a phone
Product explainers that show an automated text conversation, follow-up sequences ("Day 2 / Day 5"), booking confirmations.
sms-thread
Notes & credits
Technique sources:
- original (generic AI explainer)