Opus Motion ★ Star on GitHub

UI · sms-thread

SMS thread on a phone

A phone rises in beside a headline; a missed-call alert, typing dots and SMS bubbles pop in one by one and the thread scrolls like a real chat, with day notes and a verdict badge springing in under the headline.

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

SMS thread on a phone: three frames of the UI animation, start, middle and end
SMS thread on a phone — start, middle and end of the 7.0-second motion.

What SMS thread on a phone is for

Product explainers that show an automated text conversation, follow-up sequences ("Day 2 / Day 5"), booking confirmations.

  • sms
  • chat
  • phone
  • messages
  • ui
  • product
  • explainer

Details

Category
UI & product mockup animations
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
messages contact contactSub kicker title subtitle badge
Colour props
background paper screen ink accent mint
Image props
src
Mood
dark, ui
Roles
subject
Pairs with
Film finishing stack, Number counter, Confetti burst

Use SMS thread on a phone in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render sms-thread --props '{"messages":[{"text":"Missed call · 2:14 pm","from":"alert"},{"text":"Sorry we missed you! What do you need help with?","from":"us","tag":"Sent automatically"},{"text":"Boiler'\''s leaking, can you come Thursday?","from":"them"},{"text":"Booked: Thu 9am. See you then!","from":"us"}],"contact":"New enquiry","contactSub":"Mobile · just now","kicker":"MISSED CALL TEXT-BACK","title":"Texts back\nin seconds","subtitle":"","badge":"Booked: Thu 9am","background":"#0E2621","paper":"#F5F1E8","screen":"#F5F1E8","ink":"#0E2621","accent":"#FF5A1F","mint":"#22B573","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export sms-thread --as mp4 --props '{"messages":[{"text":"Missed call · 2:14 pm","from":"alert"},{"text":"Sorry we missed you! What do you need help with?","from":"us","tag":"Sent automatically"},{"text":"Boiler'\''s leaking, can you come Thursday?","from":"them"},{"text":"Booked: Thu 9am. See you then!","from":"us"}],"contact":"New enquiry","contactSub":"Mobile · just now","kicker":"MISSED CALL TEXT-BACK","title":"Texts back\nin seconds","subtitle":"","badge":"Booked: Thu 9am","background":"#0E2621","paper":"#F5F1E8","screen":"#F5F1E8","ink":"#0E2621","accent":"#FF5A1F","mint":"#22B573","src":""}'

React / Next.js

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

<MotionPlayer
  motion="sms-thread"
  props={{
    messages: [
      {text: 'Missed call · 2:14 pm', from: 'alert'},
      {
        text: 'Sorry we missed you! What do you need help with?',
        from: 'us',
        tag: 'Sent automatically',
      },
      {text: 'Boiler\'s leaking, can you come Thursday?', from: 'them'},
      {text: 'Booked: Thu 9am. See you then!', from: 'us'},
    ],
    contact: 'New enquiry',
    contactSub: 'Mobile · just now',
    kicker: 'MISSED CALL TEXT-BACK',
    title: 'Texts back
in seconds',
    subtitle: '',
    badge: 'Booked: Thu 9am',
    background: '#0E2621',
    paper: '#F5F1E8',
    screen: '#F5F1E8',
    ink: '#0E2621',
    accent: '#FF5A1F',
    mint: '#22B573',
    src: '',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="sms-thread"
  props='{"messages":[{"text":"Missed call · 2:14 pm","from":"alert"},{"text":"Sorry we missed you! What do you need help with?","from":"us","tag":"Sent automatically"},{"text":"Boiler&#39;s leaking, can you come Thursday?","from":"them"},{"text":"Booked: Thu 9am. See you then!","from":"us"}],"contact":"New enquiry","contactSub":"Mobile · just now","kicker":"MISSED CALL TEXT-BACK","title":"Texts back\nin seconds","subtitle":"","badge":"Booked: Thu 9am","background":"#0E2621","paper":"#F5F1E8","screen":"#F5F1E8","ink":"#0E2621","accent":"#FF5A1F","mint":"#22B573","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "sms-thread",
      "props": {
        "messages": [
          {
            "text": "Missed call · 2:14 pm",
            "from": "alert"
          },
          {
            "text": "Sorry we missed you! What do you need help with?",
            "from": "us",
            "tag": "Sent automatically"
          },
          {
            "text": "Boiler's leaking, can you come Thursday?",
            "from": "them"
          },
          {
            "text": "Booked: Thu 9am. See you then!",
            "from": "us"
          }
        ],
        "contact": "New enquiry",
        "contactSub": "Mobile · just now",
        "kicker": "MISSED CALL TEXT-BACK",
        "title": "Texts back\nin seconds",
        "subtitle": "",
        "badge": "Booked: Thu 9am",
        "background": "#0E2621",
        "paper": "#F5F1E8",
        "screen": "#F5F1E8",
        "ink": "#0E2621",
        "accent": "#FF5A1F",
        "mint": "#22B573",
        "src": ""
      }
    }
  ]
}

SMS thread on a phone props

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

PropDefaultWhat it does
messages[{"text":"Missed call · 2:14 pm","from":"alert"},{"text":"Sorry we missed you! What do …[{text, from, at?, tag?}] from = us (right, ink bubble) | them (left, white bubble) | note (small centred "DAY 2" divider) | alert (orange missed-call pill); tag = small mint line under a bubble
start14frame of the first message
stagger34frames between messages when `at` is not given
typing14frames of typing dots before each us/them bubble (0 = none)
contact"New enquiry"name in the thread header (its first letter fills the avatar)
contactSub"Mobile · just now"small line under the contact name
kicker"MISSED CALL TEXT-BACK"small tracked mono line above the headline ("" = none)
title"Texts back\nin seconds"headline beside / above the phone; \n splits lines
subtitle""body line under the headline ("" = none)
badge"Booked: Thu 9am"mint verdict pill that springs in under the headline ("" = none)
badgeAt-1frame of the badge (-1 = 24 frames after the last message)
background"#0E2621"scene colour
paper"#F5F1E8"headline colour and text colour in "us" bubbles
screen"#F5F1E8"phone screen colour
ink"#0E2621""us" bubble colour and dark text
accent"#FF5A1F"kicker, avatar and alert colour
mint"#22B573"badge and tag colour
src""optional public/ image shown blurred and dimmed behind
dim0.78how strongly the background colour covers `src` (0..1)
phoneHeight0.72landscape phone height as a fraction of frame height
grain0.05film grain opacity

Notes & credits

Technique sources:

  • original (Leadlatch explainer); bubble pop timing after video12 chat-bubble-pop