Toast stack loop
Vista previa de Toast stack loop
Primitiva

Toast stack loop

@opus-motion-library/toast-stack-loop

De Opus Motion Library

App toast notifications slide in one by one, stack with success / error / warning / info icons, count down their dismiss bar and slide out again — a seamless loop over a faint app wireframe.

Instalación

node cli/mgl.mjs add toast-stack-loop --to <your-project>/src

Cuándo usarlo

Ideal para
Product demos of feedback and notifications, a UX-patterns explainer, loading/err states for websites, or an overlay that makes a screenshot feel alive.

Especificaciones

Duración
240f · 8s
Tipo de duración
Extensible
FPS
30
Estilo
blueprint, ui
Licencia
MIT

Props (14)

  • toastsarray= [{"type":"success","title":"Changes saved","message":"Your profile was updated."},{"type":"info","title":"New version…

    array of {type: success|error|warning|info, title, message?} (up to 6)

  • positionstring= "bottom-right"

    bottom-right | top-right | bottom-center | top-center

  • themestring= "light"

    light | dark toast cards

  • lifenumber= 84

    frames each toast stays before auto-dismiss (shrinks automatically to fit the loop)

  • staggernumber= 34

    frames between toast arrivals

  • showPageboolean= true

    draw a faint app wireframe behind the toasts

  • backgroundstring= "#EEF1F7"

    frame colour, or "transparent" to overlay content

  • surfaceColorstring= "auto"

    toast card colour, or "auto"

  • inkstring= "#1B2233"

    text colour

  • accentstring= "#18B26B"

    success colour

  • errorColorstring= "#F0506E"

    error colour

  • warningColorstring= "#F5A524"

    warning colour

  • infoColorstring= "#4F6BFF"

    info colour

  • fontFamilystring= "auto"

    CSS font family, or "auto"

Categorías