Shape beatShape beat
Abrir no MOGA

Componente

Shape beat

shape-beat · Oficial do 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

Versão 1.0.1MIT12 downloads0 favoritos

Atualizado em 3 de dezembro de 2026

Usar no MOGA

Procure em «Online» na biblioteca do MOGA, ou rode isto na pasta do projeto:

npx -y moga hub-import shape-beat

Usar fora do MOGA (Motioncn)

Grátis, sem conta. É código web comum que roda numa página, React, Remotion e HyperFrames, com os mesmos quadros que o MOGA renderiza.

Adicionar ao projeto com shadcn

npx shadcn@latest add https://motioncn.dev/r/shape-beat.json

Sem shadcn configurado também funciona

npx motioncn-cli add shape-beat

Importar numa página, sem build

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 e 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 });