Dot fieldDot field
Abrir en MOGA

Componente

Dot field

@moga/backgrounds · Oficial de MOGA

Parte del paquete Backgrounds

A grid of dots that breathes: a slow wave runs through it (rings from a point, a slant across, or drifting clouds) and the dots it passes swell into the primary colour. Transparent between the dots, so the scene's surface shows. Place it over the whole frame, under everything else.

npx motioncn-cli add moga/backgrounds/dot-field

Versió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:dot-field

Ú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/dot-field.json

¿Sin shadcn configurado? También funciona

npx motioncn-cli add moga/backgrounds/dot-field

Impórtalo en una página, sin compilar

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

React, Remotion y HyperFrames

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