Componente
End card
@moga/motion · Oficial de MOGA
Parte del paquete Motion components
The closing card: a name or headline, a call to action on a filled pill and an optional line under it (an address, a date). They arrive one after another and hold to the end, pushing in very slowly. Keyframe press to tap the button. Put it last, over the whole frame.
npx motioncn-cli add moga/motion/end-cardVersión 1.0.1MIT34 descargas0 favoritos
Actualizado el 3 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/motion --items component:end-cardÚ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/motion/end-card.json¿Sin shadcn configurado? También funciona
npx motioncn-cli add moga/motion/end-cardImpórtalo en una página, sin compilar
import EndCard from 'https://motioncn.dev/m/moga/motion/end-card.js';
import preset from 'https://motioncn.dev/m/theme.js';
EndCard.mount(document.querySelector('#stage'), { preset, duration: 5 }).play();React, Remotion y HyperFrames
// React (https://motioncn.dev/r/player-react.json)
<Motion motion={EndCard} preset={preset} duration={5} fit />
// Remotion (https://motioncn.dev/r/player-remotion.json)
<MotionClip motion={EndCard} preset={preset} />
// HyperFrames (https://motioncn.dev/m/hyperframes.js)
follow(EndCard.mount(element, { preset, duration: 5 }), { start: 0 });
