コンポーネント
Hub and spokes
@moga/callouts · MOGA 公式
One thing at the centre and what connects to it: the hub pops in, spokes draw out to the items around it clockwise from the top, each item popping in as its spoke arrives, and a small pulse runs out along each spoke while it holds. Place it over the whole frame.
npx motioncn-cli add moga/callouts/hub-spokesバージョン 1.0.0MIT43 ダウンロード0 お気に入り
2026年12月3日 更新
MOGA で使う
バンドル全体ではなく、これだけをインポートします。使っているバンドルのトークンも一緒に入ります。プロジェクトフォルダで実行:
npx -y moga hub-import @moga/callouts --items component:hub-spokesMOGA の外で使う(Motioncn)
無料、アカウント不要。ふつうの Web コードなので、Web ページ、React、Remotion、HyperFrames で再生でき、MOGA と同じフレームを描きます。
shadcn でプロジェクトに追加
npx shadcn@latest add https://motioncn.dev/r/moga/callouts/hub-spokes.jsonshadcn を設定していなくても使えます
npx motioncn-cli add moga/callouts/hub-spokesビルドなしでページから import
import HubSpokes from 'https://motioncn.dev/m/moga/callouts/hub-spokes.js';
import preset from 'https://motioncn.dev/m/theme.js';
HubSpokes.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React、Remotion、HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={HubSpokes} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={HubSpokes} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(HubSpokes.mount(element, { preset, duration: 5 }), { start: 0 });
