Chapter cardChapter card
MOGA で開く

コンポーネント

Chapter card

@moga/callouts · MOGA 公式

バンドル Callouts の一部

A section break: the chapter number hits hard and huge in the primary colour, a rule draws out from it, and the kicker and title rise out of their masks beside it (or under it, centred); it holds with a slow push and leaves to the left. Place it over the whole frame.

npx motioncn-cli add moga/callouts/chapter-card

バージョン 1.0.0MIT43 ダウンロード0 お気に入り

2026年12月3日 更新

MOGA で使う

バンドル全体ではなく、これだけをインポートします。使っているバンドルのトークンも一緒に入ります。プロジェクトフォルダで実行:

npx -y moga hub-import @moga/callouts --items component:chapter-card

MOGA の外で使う(Motioncn)

無料、アカウント不要。ふつうの Web コードなので、Web ページ、React、Remotion、HyperFrames で再生でき、MOGA と同じフレームを描きます。

shadcn でプロジェクトに追加

npx shadcn@latest add https://motioncn.dev/r/moga/callouts/chapter-card.json

shadcn を設定していなくても使えます

npx motioncn-cli add moga/callouts/chapter-card

ビルドなしでページから import

import ChapterCard from 'https://motioncn.dev/m/moga/callouts/chapter-card.js';
import preset from 'https://motioncn.dev/m/theme.js';
ChapterCard.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();

React、Remotion、HyperFrames

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