Opus Motion ★ Star on GitHub

Maps · city-zoom-label

City zoom + label card

A world map zooms (expo ease, graticule re-scaling) down to a lat/lon, a pin pings, and a label card with name, subtitle and coordinates slides in.

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

City zoom + label card: three frames of the animated map, start, middle and end
City zoom + label card — start, middle and end of the 6.0-second motion.

What City zoom + label card is for

"We are here" / location reveals, store or event locators, travel and news establishing shots, any beat that goes from the world to one place. Set `lat`, `lon`, `label`.

  • map
  • zoom
  • location
  • pin
  • label
  • coordinates
  • lat-lon
  • establishing
  • world
  • city

Details

Category
Animated maps & geo graphics
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
label subtitle
Colour props
background land landStroke ink accent onAccent
Mood
—
Roles
subject

Use City zoom + label card in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render city-zoom-label --props '{"label":"Your City","subtitle":"Add a one-line description here","background":"#0B1220","land":"#17243C","landStroke":"#2F4468","ink":"#E8EEF9","accent":"#FF7A59","onAccent":"#0B1220"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export city-zoom-label --as webm-alpha --props '{"label":"Your City","subtitle":"Add a one-line description here","background":"#0B1220","land":"#17243C","landStroke":"#2F4468","ink":"#E8EEF9","accent":"#FF7A59","onAccent":"#0B1220"}'

React / Next.js

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

<MotionPlayer
  motion="city-zoom-label"
  props={{
    label: 'Your City',
    subtitle: 'Add a one-line description here',
    background: '#0B1220',
    land: '#17243C',
    landStroke: '#2F4468',
    ink: '#E8EEF9',
    accent: '#FF7A59',
    onAccent: '#0B1220',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="city-zoom-label"
  props='{"label":"Your City","subtitle":"Add a one-line description here","background":"#0B1220","land":"#17243C","landStroke":"#2F4468","ink":"#E8EEF9","accent":"#FF7A59","onAccent":"#0B1220"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "city-zoom-label",
      "props": {
        "label": "Your City",
        "subtitle": "Add a one-line description here",
        "background": "#0B1220",
        "land": "#17243C",
        "landStroke": "#2F4468",
        "ink": "#E8EEF9",
        "accent": "#FF7A59",
        "onAccent": "#0B1220"
      }
    }
  ]
}

City zoom + label card props

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

PropDefaultWhat it does
lat45target latitude (degrees, N positive)
lon9target longitude (degrees, E positive)
label"Your City"place name on the card
subtitle"Add a one-line description here"line under the name
tag"Location"small caps line above the name
zoom110final zoom in px per degree at 1080 scale (world view is ~5; 110 = a region; the baked coastline is simplified, so above ~250 it looks faceted)
showCoordstrueprint the lat/lon on the card
speed1timeline speed multiplier
startAt0frame to start at
background"#0B1220"ocean colour or "transparent"
land"#17243C"land fill
landStroke"#2F4468"coastline, grid and card border colour
ink"#E8EEF9"text colour
accent"#FF7A59"pin / leader colour
onAccent"#0B1220"dot colour inside the pin
fontFamily"stub"CSS font-family
monoFamily"stub"CSS font-family for the coordinates line

Notes & credits

Technique sources:

  • original (round 3)