Halftone dotsHalftone dots
MOGA で開く

コンポーネント

Halftone dots

@moga/backgrounds · MOGA 公式

バンドル Backgrounds の一部

Printed-looking halftone: a slanted screen of ink dots whose sizes follow a moving tone (drifting clouds, a rolling gradient, or rings), dark where the dots grow and touch, light where they shrink to specks. Transparent between the dots. Place it over the whole frame, under everything else, or in a box as a texture.

npx motioncn-cli add moga/backgrounds/halftone-dots

バージョン 1.0.1MIT101 ダウンロード0 お気に入り

2026年12月4日 更新

MOGA で使う

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

npx -y moga hub-import @moga/backgrounds --items component:halftone-dots

MOGA の外で使う(Motioncn)

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

shadcn でプロジェクトに追加

npx shadcn@latest add https://motioncn.dev/r/moga/backgrounds/halftone-dots.json

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

npx motioncn-cli add moga/backgrounds/halftone-dots

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

import HalftoneDots from 'https://motioncn.dev/m/moga/backgrounds/halftone-dots.js';
import preset from 'https://motioncn.dev/m/theme.js';
HalftoneDots.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();

React、Remotion、HyperFrames

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