
基础动画
Toast stack loop
@opus-motion-library/toast-stack-loop
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.
安装
node cli/mgl.mjs add toast-stack-loop --to <your-project>/src适用场景
- 适合
- Product demos of feedback and notifications, a UX-patterns explainer, loading/err states for websites, or an overlay that makes a screenshot feel alive.
规格
- 时长
- 240f · 8s
- 时长类型
- 可延长
- FPS
- 30
- 风格
- blueprint, ui
- 许可证
- 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"