Design System · Playback

Animation player bar

Video-style controls for timed marketing animations — play, pause, restart, and scrub. Not for real <video> elements; pairs with AnimMount and Vue animations that expose getPlayback().

← Back to Design System

Copy column — place AnimationPlayerBar here in split rows.

0:000:00

Anatomy

Control bar

Navy circular buttons, scrubbable range with navy fill + thumb. Disabled scrub shows gray thumb (legacy animations without getPlayback).

0:000:00

Standalone bar (no animation wired on this instance). Use the hero demo above for a live pair.

Usage

Split row (Astro)

Controls live in the copy column; AnimMount hosts the animation in the visual column. Same channelId on both.

import AnimationPlayerBar from '@components/ui/AnimationPlayerBar.astro';
import AnimMount from '@components/vue/AnimMount.vue';

const channelId = 'my-moment-01';

<!-- copy column -->
<AnimationPlayerBar channelId={channelId} />

<!-- visual column -->
<AnimMount
  client:visible
  channelId={channelId}
  animationKey="event-booking"
  durationMs={55000}
/>

Usage

Inside Vue (ProofSectionA pattern)

Import the Vue component directly when the parent is already a Vue island.

import AnimationPlayerBar from '@components/vue/AnimationPlayerBar.vue';
import AnimMount from '@components/vue/AnimMount.vue';

<AnimationPlayerBar :channel-id="channelId" />
<AnimMount
  :channel-id="channelId"
  :component="MyAnimation"
  :duration-ms="48000"
/>

Integration

Event protocol

AnimMount polls playback state and listens for control events. Animations use useAnimMountPlayback for scrub support.

Player → animation (maiia-anim-ctrl)

  • action: 'pause' | 'resume' | 'restart' | 'seek'
  • seek includes ms (elapsed milliseconds)
  • channelId must match on both sides

Animation → player (maiia-anim-playback)

  • paused, playing, progress, elapsedMs, durationMs
  • scrubEnabled: true — navy thumb, draggable

Source files

  • src/components/vue/AnimationPlayerBar.vue — Vue control bar
  • src/components/ui/AnimationPlayerBar.astro — Astro wrapper
  • src/components/vue/AnimMount.vue — animation host + bridge
  • src/components/vue/useAnimMountPlayback.js — pauseable clock for animations
  • src/components/vue/animationRegistry.ts — Astro-safe animation keys

Book a demo

Tell us about your property and we will follow up to schedule a personalized walkthrough.