Ticker bandTicker band
Ouvrir dans MOGA

Composant

Ticker band

@moga/industrial-ui · Officiel MOGA

Fait partie du pack Industrial UI

A dark band (dark in both themes) running //-separated items right to left at a steady pace, as a machine's status ticker; it wipes in from the left. Fills its box (a strip about 40 px high).

npx motioncn-cli add moga/industrial-ui/ticker-band

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:ticker-band

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/ticker-band.json

Sans shadcn configuré, ceci marche aussi

npx motioncn-cli add moga/industrial-ui/ticker-band

L'importer dans une page, sans build

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

React, Remotion et HyperFrames

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