Screen frameScreen frame
Ouvrir dans MOGA

Composant

Screen frame

@moga/industrial-ui · Officiel MOGA

Fait partie du pack Industrial UI

The frame a whole film sits in, as a machine's operating screen: a hairline border, the film's name, chapter and section at the top left, date, tempo and metre at the top right, and along the bottom a running timecode, the phase, a ruler of beats with a playhead, the bar number and four beat lights, over faint contour lines. Every number counts from the film's clock. Place it over the whole frame (1920×1080), first, under everything; give each section its own copy with clock set to where that se

npx motioncn-cli add moga/industrial-ui/hud-chrome

Version 1.0.0MIT88 téléchargements0 favoris

Mis à jour le 5 décembre 2026

L'utiliser dans MOGA

Importez seulement celui-ci, sans le reste du bundle. Les tokens du bundle qu’il utilise viennent avec. Lancez dans le dossier du projet :

npx -y moga hub-import @moga/industrial-ui --items component:hud-chrome

L'utiliser hors de MOGA (Motioncn)

Gratuit, sans compte. C'est du code web ordinaire qui se lit dans une page, React, Remotion et HyperFrames, avec les mêmes images que MOGA.

L'ajouter à votre projet avec shadcn

npx shadcn@latest add https://motioncn.dev/r/moga/industrial-ui/hud-chrome.json

Sans shadcn configuré, ceci marche aussi

npx motioncn-cli add moga/industrial-ui/hud-chrome

L'importer dans une page, sans build

import HudChrome from 'https://motioncn.dev/m/moga/industrial-ui/hud-chrome.js';
import preset from 'https://motioncn.dev/m/theme.js';
HudChrome.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();

React, Remotion et HyperFrames

// React (https://motioncn.dev/r/player-react.json)
<Motion motion={HudChrome} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={HudChrome} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(HudChrome.mount(element, { preset, duration: 5 }), { start: 0 });