Opus Motion ★ Star on GitHub

UI · notification-stack

Notification stack (iOS / macOS / Android / toast)

System notifications slide in on a 10-frame spring and stack — newest on top, older ones compress behind (7 px offset, 0.96 scale per level, max 4 visible) or list in full — with a red counter badge that pops on each arrival. iOS lock-screen banners with a clock, macOS corner cards, Android heads-up cards or a plain toast pill; light or dark, or transparent as an overlay.

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

Notification stack (iOS / macOS / Android / toast): three frames of the UI animation, start, middle and end
Notification stack (iOS / macOS / Android / toast) — start, middle and end of the 6.7-second motion.

What Notification stack (iOS / macOS / Android / toast) is for

Social proof ("new order!"), app demos, urgency hooks in ads, "your inbox in 10 seconds" gags; pass your own items.

  • notification
  • notifications
  • toast
  • banner
  • alert
  • ios
  • macos
  • android
  • lock screen
  • stack
  • badge
  • social proof
  • new order
  • ui
  • phone
  • app demo
  • overlay
  • urgency

Details

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

Use Notification stack (iOS / macOS / Android / toast) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render notification-stack --props '{"items":[{"app":"Northwind Shop","icon":"cart","color":"#FF7A45","title":"New order #1042","body":"2 items · $48.00 — packed and ready to ship","at":14},{"app":"Messages","icon":"chat","color":"#34C759","title":"Maya","body":"Are we still on for Thursday?","at":46},{"app":"Payments","icon":"card","color":"#4D6BFF","title":"Payment received","body":"$1,200.00 from Acme Studio","at":78},{"app":"Calendar","icon":"calendar","color":"#FF4D5E","title":"Design review in 10 min","body":"Room 4B · bring the prototype","at":110},{"app":"Mail","icon":"mail","color":"#2FA8FF","title":"Your weekly report","body":"Revenue is up 18% on last week.","at":142}],"background":"#1B2A5E"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export notification-stack --as webm-alpha --props '{"items":[{"app":"Northwind Shop","icon":"cart","color":"#FF7A45","title":"New order #1042","body":"2 items · $48.00 — packed and ready to ship","at":14},{"app":"Messages","icon":"chat","color":"#34C759","title":"Maya","body":"Are we still on for Thursday?","at":46},{"app":"Payments","icon":"card","color":"#4D6BFF","title":"Payment received","body":"$1,200.00 from Acme Studio","at":78},{"app":"Calendar","icon":"calendar","color":"#FF4D5E","title":"Design review in 10 min","body":"Room 4B · bring the prototype","at":110},{"app":"Mail","icon":"mail","color":"#2FA8FF","title":"Your weekly report","body":"Revenue is up 18% on last week.","at":142}],"background":"#1B2A5E"}'

React / Next.js

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

<MotionPlayer
  motion="notification-stack"
  props={{
    items: [
      {
        app: 'Northwind Shop',
        icon: 'cart',
        color: '#FF7A45',
        title: 'New order #1042',
        body: '2 items · $48.00 — packed and ready to ship',
        at: 14,
      },
      {
        app: 'Messages',
        icon: 'chat',
        color: '#34C759',
        title: 'Maya',
        body: 'Are we still on for Thursday?',
        at: 46,
      },
      {
        app: 'Payments',
        icon: 'card',
        color: '#4D6BFF',
        title: 'Payment received',
        body: '$1,200.00 from Acme Studio',
        at: 78,
      },
      {
        app: 'Calendar',
        icon: 'calendar',
        color: '#FF4D5E',
        title: 'Design review in 10 min',
        body: 'Room 4B · bring the prototype',
        at: 110,
      },
      {
        app: 'Mail',
        icon: 'mail',
        color: '#2FA8FF',
        title: 'Your weekly report',
        body: 'Revenue is up 18% on last week.',
        at: 142,
      },
    ],
    background: '#1B2A5E',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="notification-stack"
  props='{"items":[{"app":"Northwind Shop","icon":"cart","color":"#FF7A45","title":"New order #1042","body":"2 items · $48.00 — packed and ready to ship","at":14},{"app":"Messages","icon":"chat","color":"#34C759","title":"Maya","body":"Are we still on for Thursday?","at":46},{"app":"Payments","icon":"card","color":"#4D6BFF","title":"Payment received","body":"$1,200.00 from Acme Studio","at":78},{"app":"Calendar","icon":"calendar","color":"#FF4D5E","title":"Design review in 10 min","body":"Room 4B · bring the prototype","at":110},{"app":"Mail","icon":"mail","color":"#2FA8FF","title":"Your weekly report","body":"Revenue is up 18% on last week.","at":142}],"background":"#1B2A5E"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "notification-stack",
      "props": {
        "items": [
          {
            "app": "Northwind Shop",
            "icon": "cart",
            "color": "#FF7A45",
            "title": "New order #1042",
            "body": "2 items · $48.00 — packed and ready to ship",
            "at": 14
          },
          {
            "app": "Messages",
            "icon": "chat",
            "color": "#34C759",
            "title": "Maya",
            "body": "Are we still on for Thursday?",
            "at": 46
          },
          {
            "app": "Payments",
            "icon": "card",
            "color": "#4D6BFF",
            "title": "Payment received",
            "body": "$1,200.00 from Acme Studio",
            "at": 78
          },
          {
            "app": "Calendar",
            "icon": "calendar",
            "color": "#FF4D5E",
            "title": "Design review in 10 min",
            "body": "Room 4B · bring the prototype",
            "at": 110
          },
          {
            "app": "Mail",
            "icon": "mail",
            "color": "#2FA8FF",
            "title": "Your weekly report",
            "body": "Revenue is up 18% on last week.",
            "at": 142
          }
        ],
        "background": "#1B2A5E"
      }
    }
  ]
}

Notification stack (iOS / macOS / Android / toast) props

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

PropDefaultWhat it does
items[{"app":"Northwind Shop","icon":"cart","color":"#FF7A45","title":"New order #1042","bod…notifications [{app, icon (bell|chat|mail|cart|heart|check|calendar|card|bolt|user), color, title, body, at (frame), time}]
platform"ios"'ios' | 'macos' | 'android' | 'toast'
layout"stack"'stack' (older cards compress behind) | 'list' (full cards pushed down / up)
position"auto"'auto' | 'top' | 'bottom'
theme"light"'light' | 'dark' card surfaces
maxVisible4cards kept visible before the oldest drops out
badgetruecounter badge on the stack (hidden for toast)
clock"9:41"ios lock-screen time ("" = hide the clock)
date"Tuesday, 14 October"ios lock-screen date line
background"#1B2A5E"wallpaper base colour, or 'transparent' to use as an overlay

Notes & credits

Technique sources:

  • prompt-corpus research: notification-stack (16 cases, ideas only; original implementation)