Opus Motion ★ Star on GitHub

UI · typing-indicator-chat

Chat with typing indicator

A chat window: replies appear as bouncing typing dots that morph into the message, your messages slide in, the thread scrolls and clears at the end — a seamless loop. Messages are a prop.

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

Chat with typing indicator: three frames of the UI animation, start, middle and end
Chat with typing indicator — start, middle and end of the 9.0-second motion.

What Chat with typing indicator is for

Support-bot, AI-assistant and messaging product demos, "talk to us" website sections, onboarding conversations, any "someone is typing…" beat.

  • chat
  • typing
  • typing-indicator
  • messages
  • bubbles
  • chatbot
  • support
  • assistant
  • ui
  • app
  • website
  • loop
  • messenger
  • conversation

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
yes
Seamless loop
yes
Text props
messages contact
Colour props
background ink accent
Mood
playful, ui
Roles
subject
Pairs with
Device mockup (phone, tablet, laptop, watch), SMS thread on a phone, Film finishing stack

Use Chat with typing indicator in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render typing-indicator-chat --props '{"messages":[{"from":"me","text":"Hi! Can you help me change my delivery address?"},{"from":"them","text":"Of course! Which order is it for?"},{"from":"me","text":"Order #4821, it ships tomorrow."},{"from":"them","text":"Done, it will now arrive at your new address. Anything else?"}],"contact":"Support","background":"#E9EDF6","ink":"#1B2233","accent":"#4F6BFF"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export typing-indicator-chat --as webm-alpha --props '{"messages":[{"from":"me","text":"Hi! Can you help me change my delivery address?"},{"from":"them","text":"Of course! Which order is it for?"},{"from":"me","text":"Order #4821, it ships tomorrow."},{"from":"them","text":"Done, it will now arrive at your new address. Anything else?"}],"contact":"Support","background":"#E9EDF6","ink":"#1B2233","accent":"#4F6BFF"}'

React / Next.js

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

<MotionPlayer
  motion="typing-indicator-chat"
  props={{
    messages: [
      {from: 'me', text: 'Hi! Can you help me change my delivery address?'},
      {from: 'them', text: 'Of course! Which order is it for?'},
      {from: 'me', text: 'Order #4821, it ships tomorrow.'},
      {
        from: 'them',
        text: 'Done, it will now arrive at your new address. Anything else?',
      },
    ],
    contact: 'Support',
    background: '#E9EDF6',
    ink: '#1B2233',
    accent: '#4F6BFF',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="typing-indicator-chat"
  props='{"messages":[{"from":"me","text":"Hi! Can you help me change my delivery address?"},{"from":"them","text":"Of course! Which order is it for?"},{"from":"me","text":"Order #4821, it ships tomorrow."},{"from":"them","text":"Done, it will now arrive at your new address. Anything else?"}],"contact":"Support","background":"#E9EDF6","ink":"#1B2233","accent":"#4F6BFF"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "typing-indicator-chat",
      "props": {
        "messages": [
          {
            "from": "me",
            "text": "Hi! Can you help me change my delivery address?"
          },
          {
            "from": "them",
            "text": "Of course! Which order is it for?"
          },
          {
            "from": "me",
            "text": "Order #4821, it ships tomorrow."
          },
          {
            "from": "them",
            "text": "Done, it will now arrive at your new address. Anything else?"
          }
        ],
        "contact": "Support",
        "background": "#E9EDF6",
        "ink": "#1B2233",
        "accent": "#4F6BFF"
      }
    }
  ]
}

Chat with typing indicator props

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

PropDefaultWhat it does
messages[{"from":"me","text":"Hi! Can you help me change my delivery address?"},{"from":"them",…array of {from: "me" | "them", text} (up to 8); "them" messages get a typing indicator first
contact"Support"name in the chat header (also colours the avatar)
status"Online"small line under the name ("Online", "typing…")
typingFrames40frames the typing dots bounce before each reply
gap16frames of pause between messages
showHeadertrueshow the contact header
showTypingtrueshow the typing indicator before incoming messages
background"#E9EDF6"frame colour, or "transparent" to overlay content
windowColor"auto"chat window colour, or "auto"
bubbleColor"auto"incoming bubble colour, or "auto"
ink"#1B2233"text colour
accent"#4F6BFF"your bubble colour
fontFamily"auto"CSS font family, or "auto"

Notes & credits

Conversation clears at the end so it loops; messages is a prop (from "me"|"them").

Technique sources:

  • original