Decode textDecode text
MOGA で開く

コンポーネント

Decode text

@moga/kinetic-type · MOGA 公式

バンドル Kinetic type の一部

A line that resolves out of scrambled glyphs: characters start scrambling on a wave, cycle through glyphs, then lock on their real letter with a flash of the primary colour. The line never jitters (each character keeps its real width). It holds for its reading time and scrambles back out. Place it over the whole frame.

npx motioncn-cli add moga/kinetic-type/decode-text

バージョン 1.0.2MIT31 ダウンロード0 お気に入り

2026年12月3日 更新

MOGA で使う

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

npx -y moga hub-import @moga/kinetic-type --items component:decode-text

MOGA の外で使う(Motioncn)

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

shadcn でプロジェクトに追加

npx shadcn@latest add https://motioncn.dev/r/moga/kinetic-type/decode-text.json

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

npx motioncn-cli add moga/kinetic-type/decode-text

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

import DecodeText from 'https://motioncn.dev/m/moga/kinetic-type/decode-text.js';
import preset from 'https://motioncn.dev/m/theme.js';
DecodeText.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();

React、Remotion、HyperFrames

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