Componente
Light sweep
@moga/backgrounds · Oficial de MOGA
Soft beams of light lying across the surface on a slant and drifting slowly, like window light moving over a wall; on each sweep beat a bright band passes across once, like light catching glass. Place it over the whole frame, under everything else (or with ground off, over a picture).
npx motioncn-cli add moga/backgrounds/light-sweepVersión 1.0.1MIT101 descargas0 favoritos
Actualizado el 4 de diciembre de 2026
Úsalo en MOGA
Importa solo este, sin el resto del bundle. Los tokens del bundle que usa vienen con él. Ejecuta en la carpeta del proyecto:
npx -y moga hub-import @moga/backgrounds --items component:light-sweepÚsalo fuera de MOGA (Motioncn)
Gratis y sin cuenta. Es código web normal que se reproduce en una página, React, Remotion y HyperFrames, con los mismos fotogramas que MOGA.
Añádelo a tu proyecto con shadcn
npx shadcn@latest add https://motioncn.dev/r/moga/backgrounds/light-sweep.json¿Sin shadcn configurado? También funciona
npx motioncn-cli add moga/backgrounds/light-sweepImpórtalo en una página, sin compilar
import LightSweep from 'https://motioncn.dev/m/moga/backgrounds/light-sweep.js';
import preset from 'https://motioncn.dev/m/theme.js';
LightSweep.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion y HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={LightSweep} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={LightSweep} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(LightSweep.mount(element, { preset, duration: 5 }), { start: 0 });
