Loading indicatorLoading indicator
MOGA で開く

コンポーネント

Loading indicator

@m3e/loading-indicator · MOGA 公式

M3 Expressive loader: a shape that morphs through seven shapes while it spins.

#m3e#material

npx motioncn-cli add m3e/loading-indicator

バージョン 0.0.1MIT3 ダウンロード0 お気に入り

2026年12月5日 更新

MOGA で使う

MOGA ライブラリの「オンライン」で検索するか、プロジェクトのフォルダで次を実行します:

npx -y moga hub-import @m3e/loading-indicator

MOGA の外で使う(Motioncn)

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

shadcn でプロジェクトに追加

npx shadcn@latest add https://motioncn.dev/r/m3e/loading-indicator.json

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

npx motioncn-cli add m3e/loading-indicator

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

import LoadingIndicator from 'https://motioncn.dev/m/m3e/loading-indicator.js';
import preset from 'https://motioncn.dev/m/theme.js';
LoadingIndicator.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();

React、Remotion、HyperFrames

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