コンポーネント
Shape reveal
@moga/transitions · MOGA 公式
An M3 Expressive shape grows from a point, turning as it swells, until it fills the frame; after the cut a hole in another shape opens from the same point, rounding into a circle, and the new shot shows through. circle and circle is an iris. Place it over the whole frame, on top, centred on the cut between two shots (about 1.2 s: the cut at its middle).
npx motioncn-cli add moga/transitions/shape-revealバージョン 1.1.2MIT94 ダウンロード0 お気に入り
2026年12月4日 更新
MOGA で使う
バンドル全体ではなく、これだけをインポートします。使っているバンドルのトークンも一緒に入ります。プロジェクトフォルダで実行:
npx -y moga hub-import @moga/transitions --items component:shape-revealMOGA の外で使う(Motioncn)
無料、アカウント不要。ふつうの Web コードなので、Web ページ、React、Remotion、HyperFrames で再生でき、MOGA と同じフレームを描きます。
shadcn でプロジェクトに追加
npx shadcn@latest add https://motioncn.dev/r/moga/transitions/shape-reveal.jsonshadcn を設定していなくても使えます
npx motioncn-cli add moga/transitions/shape-revealビルドなしでページから import
import ShapeReveal from 'https://motioncn.dev/m/moga/transitions/shape-reveal.js';
import preset from 'https://motioncn.dev/m/theme.js';
ShapeReveal.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React、Remotion、HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={ShapeReveal} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={ShapeReveal} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(ShapeReveal.mount(element, { preset, duration: 5 }), { start: 0 });
