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().
Copy column — place AnimationPlayerBar here in split rows.
Anatomy
Control bar
Navy circular buttons, scrubbable range with navy fill + thumb. Disabled scrub shows gray thumb (legacy animations without getPlayback).
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'seekincludesms(elapsed milliseconds)channelIdmust match on both sides
Animation → player (maiia-anim-playback)
paused, playing, progress, elapsedMs, durationMsscrubEnabled: true— navy thumb, draggable
Source files
src/components/vue/AnimationPlayerBar.vue— Vue control barsrc/components/ui/AnimationPlayerBar.astro— Astro wrappersrc/components/vue/AnimMount.vue— animation host + bridgesrc/components/vue/useAnimMountPlayback.js— pauseable clock for animationssrc/components/vue/animationRegistry.ts— Astro-safe animation keys
