fx-confetti

GitHub

提供基于Canvas的五彩纸屑特效,用于演示文稿或发布视频中的高光时刻。遵循无障碍规范,支持减少动态偏好设置,仅限单次使用以避免干扰阅读。

recipes/slides/fx-confetti/SKILL.md nexu-io/motion-anything

Trigger Scenarios

需要在幻灯片标题页或章节过渡处添加庆祝动画 为产品发布视频或网页英雄区域配置视觉强调效果

Install

npx skills add nexu-io/motion-anything --skill fx-confetti -g -y
More Options

Non-standard path

npx skills add https://github.com/nexu-io/motion-anything/tree/main/recipes/slides/fx-confetti -g -y

Use without installing

npx skills use nexu-io/motion-anything@fx-confetti

指定 Agent (Claude Code)

npx skills add nexu-io/motion-anything --skill fx-confetti -a claude-code -g -y

安装 repo 全部 skill

npx skills add nexu-io/motion-anything --all -g -y

预览 repo 内 skill

npx skills add nexu-io/motion-anything --list

SKILL.md

Frontmatter
{
    "od": {
        "mode": "prototype",
        "preview": {
            "type": "html"
        },
        "surface": "web",
        "category": "animation-motion",
        "platform": "desktop",
        "upstream": "https:\/\/github.com\/nexu-io\/open-design",
        "design_system": {
            "requires": false
        },
        "example_prompt": "Use fx-confetti as a section effect on a slide or hero: call HPX['confetti-cannon'](el) on a positioned dark\ncontainer; keep to one bold effect per screen, with a reduced-motion guard."
    },
    "name": "fx-confetti",
    "triggers": [
        "confetti",
        "彩纸庆祝"
    ],
    "description": "Confetti fires across the frame — for wins and reveals. A bold, canvas-based effect from Open Design's html-ppt fx pack — for slides and launch\nvideos. Guards prefers-reduced-motion (does not start). One per screen; on web use sparingly.\n"
}

Confetti Cannon

Confetti fires across the frame — for wins and reveals. From Open Design's html-ppt fx pack (Apache-2.0). Part of motion-anything; obeys MOTION-SPEC.md.

When to use it

  • Title cards, section breaks, or hero moments in slides / launch videos.

When NOT to use it (restraint)

  • Web body content or anything needing focused reading. Never more than one bold effect at once.

How to apply

  1. Copy confetti-cannon.js and _util.js and link them.
  2. Add data-fx="confetti-cannon" to a positioned container; call HPX['confetti-cannon'](el) (guard prefers-reduced-motion).

Accessibility & performance

  • Guard with prefers-reduced-motion (don't start). Canvas-based; isolated compositing layer.

Version History

  • b016900 Current 2026-07-11 17:06

Same Skill Collection

recipes/animxyz/xyz-fade-big/SKILL.md
recipes/animxyz/xyz-fade-down/SKILL.md
recipes/animxyz/xyz-fade-left/SKILL.md
recipes/animxyz/xyz-fade-right/SKILL.md
recipes/animxyz/xyz-fade-small/SKILL.md
recipes/animxyz/xyz-fade-up/SKILL.md
recipes/animxyz/xyz-flip-left/SKILL.md
recipes/animxyz/xyz-flip-up/SKILL.md
recipes/animxyz/xyz-rise-big/SKILL.md
recipes/animxyz/xyz-rotate/SKILL.md
recipes/app/bottom-sheet/SKILL.md
recipes/app/button-press/SKILL.md
recipes/app/checkbox-pop/SKILL.md
recipes/app/ripple/SKILL.md
recipes/app/tab-bar-slide/SKILL.md
recipes/app/toast-pop/SKILL.md
recipes/css/anim-backindown/SKILL.md
recipes/css/anim-backinleft/SKILL.md
recipes/css/anim-backinright/SKILL.md
recipes/css/anim-backinup/SKILL.md
recipes/css/anim-backoutdown/SKILL.md
recipes/css/anim-backoutleft/SKILL.md
recipes/css/anim-backoutright/SKILL.md
recipes/css/anim-backoutup/SKILL.md
recipes/css/anim-bounce/SKILL.md
recipes/css/anim-bouncein/SKILL.md
recipes/css/anim-bounceindown/SKILL.md
recipes/css/anim-bounceinleft/SKILL.md
recipes/css/anim-bounceinright/SKILL.md
recipes/css/anim-bounceinup/SKILL.md
recipes/css/anim-bounceout/SKILL.md
recipes/css/anim-bounceoutdown/SKILL.md
recipes/css/anim-bounceoutleft/SKILL.md
recipes/css/anim-bounceoutright/SKILL.md
recipes/css/anim-bounceoutup/SKILL.md
recipes/css/anim-fadein/SKILL.md
recipes/css/anim-fadeinbottomleft/SKILL.md
recipes/css/anim-fadeinbottomright/SKILL.md
recipes/css/anim-fadeindown/SKILL.md
recipes/css/anim-fadeindownbig/SKILL.md
recipes/css/anim-fadeinleft/SKILL.md
recipes/css/anim-fadeinleftbig/SKILL.md
recipes/css/anim-fadeinright/SKILL.md
recipes/css/anim-fadeinrightbig/SKILL.md
recipes/css/anim-fadeintopleft/SKILL.md
recipes/css/anim-fadeintopright/SKILL.md
recipes/css/anim-fadeinup/SKILL.md
recipes/css/anim-fadeinupbig/SKILL.md
recipes/css/anim-fadeout/SKILL.md
recipes/css/anim-fadeoutbottomleft/SKILL.md

Metadata

Files
0
Version
b016900
Hash
860ccaed
Indexed
2026-07-11 17:06

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-08 23:38
浙ICP备14020137号-1 $Carte des visiteurs$