Opus Motion ★ Star on GitHub

UI · boarding-pass-print

Boarding pass printing

A printer slot feeds out a boarding pass in stepped jerks: airline header, big FROM and TO codes with a dotted flight path, passenger fields, a perforated stub with a seat that lights up and a barcode that gets scanned.

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

Boarding pass printing: three frames of the UI animation, start, middle and end
Boarding pass printing — start, middle and end of the 6.0-second motion.

What Boarding pass printing is for

Travel and airline promos, trip-confirmation beats, holiday reveals, "you are going to ..." moments, check-in UI demos — set the codes, cities, times, seat and airline.

  • boarding pass
  • flight
  • airline
  • ticket
  • travel
  • airport
  • trip
  • holiday
  • vacation
  • check-in
  • barcode
  • seat
  • print
  • ui

Details

Category
UI & product mockup animations
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
—
Colour props
background paper ink accent
Mood
hud, ui
Roles
subject

Use Boarding pass printing in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render boarding-pass-print --props '{"background":"#DCE6F2","paper":"#FFFFFF","ink":"#14233B","accent":"#1F6FEB"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export boarding-pass-print --as webm-alpha --props '{"background":"#DCE6F2","paper":"#FFFFFF","ink":"#14233B","accent":"#1F6FEB"}'

React / Next.js

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

<MotionPlayer
  motion="boarding-pass-print"
  props={{
    background: '#DCE6F2',
    paper: '#FFFFFF',
    ink: '#14233B',
    accent: '#1F6FEB',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="boarding-pass-print"
  props='{"background":"#DCE6F2","paper":"#FFFFFF","ink":"#14233B","accent":"#1F6FEB"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "boarding-pass-print",
      "props": {
        "background": "#DCE6F2",
        "paper": "#FFFFFF",
        "ink": "#14233B",
        "accent": "#1F6FEB"
      }
    }
  ]
}

Boarding pass printing props

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

PropDefaultWhat it does
airline"Skyline Air"generic airline name (header and stub)
fromCode"LIS"departure code, e.g. 3 letters
fromCity"Lisbon"departure city line
toCode"OSL"arrival code
toCity"Oslo"arrival city line
departTime"09:45"departure time
arriveTime"14:05"arrival time
date"12 JUN"travel date text
flight"SK 482"flight number text
gate"B14"gate text
seat"12A"seat text (highlighted on the stub)
boardingTime"09:05"boarding time text
passenger"A. TRAVELLER"passenger name text
travelClass"Economy"cabin class text
headerLabel"BOARDING PASS"small caps label in the header band
printFrames54frames the feed takes to print the whole pass
background"#DCE6F2"page colour or 'transparent'
paper"#FFFFFF"pass colour
ink"#14233B"text and bar colour
accent"#1F6FEB"header band, plane and seat highlight colour
startAt0frame the scene starts

Notes & credits

Technique sources:

  • original (round 3)