
Primitive
Toast stack loop
@opus-motion-library/toast-stack-loop
From 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.
Install
node cli/mgl.mjs add toast-stack-loop --to <your-project>/srcWhen to use
- Good for
- Product demos of feedback and notifications, a UX-patterns explainer, loading/err states for websites, or an overlay that makes a screenshot feel alive.
Specs
- Length
- 240f · 8s
- Length type
- Extendable
- FPS
- 30
- Style
- blueprint, ui
- License
- 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= 84frames each toast stays before auto-dismiss (shrinks automatically to fit the loop)
staggernumber= 34frames between toast arrivals
showPageboolean= truedraw 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"