コンポーネント
Shape beat
shape-beat · MOGA 公式
A kit shape morphing through M3 shapes on a beat, each morph on the expressive spring, with a typed caption
npx motioncn-cli add shape-beatバージョン 1.0.1MIT12 ダウンロード0 お気に入り
2026年12月3日 更新
MOGA で使う
MOGA ライブラリの「オンライン」で検索するか、プロジェクトのフォルダで次を実行します:
npx -y moga hub-import shape-beatMOGA の外で使う(Motioncn)
無料、アカウント不要。ふつうの Web コードなので、Web ページ、React、Remotion、HyperFrames で再生でき、MOGA と同じフレームを描きます。
shadcn でプロジェクトに追加
npx shadcn@latest add https://motioncn.dev/r/shape-beat.jsonshadcn を設定していなくても使えます
npx motioncn-cli add shape-beatビルドなしでページから import
import ShapeBeat from 'https://motioncn.dev/m/shape-beat.js';
import preset from 'https://motioncn.dev/m/theme.js';
ShapeBeat.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React、Remotion、HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={ShapeBeat} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={ShapeBeat} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(ShapeBeat.mount(element, { preset, duration: 5 }), { start: 0 });
