Skip to content

AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He

docs: require top-level <g id> in Executor SVGs and document animation flags

hugohe38ec355883348
diff --git a/docs/faq.md b/docs/faq.md
index ed4d5e62..b932c2c6 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -54,6 +54,45 @@ Charts are rendered as **custom-designed SVG graphics** converted to native Powe
If your workflow specifically requires Excel-driven data editing, manually create a similar chart yourself in PowerPoint after export.
+## Q: Can I change page transitions and element animations?
+
+Yes. The exported PPTX supports both **page transitions** and **per-element entrance animations**, controlled via `svg_to_pptx.py` CLI flags.
+
+**Page transitions** (on by default, 0.4s `fade`)
+
+```bash
+# Pick a different effect: fade / push / wipe / split / strips / cover / random
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> -t push --transition-duration 0.6
+
+# Disable transitions
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> -t none
+
+# Auto-advance every 5 seconds
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> --auto-advance 5
+```
+
+**Per-element animations** (off by default — existing users see no behavior change)
+
+Enter a slide → click once → semantic groups cascade in by z-order. To enable:
+
+```bash
+# Cascade every element with fade (recommended starting point)
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> --animation fade
+
+# Auto-vary effects within a slide (title fades, content rotates fly/zoom/wipe...)
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> --animation mixed
+
+# Slower pace: 0.5s per element, 0.2s gap between elements
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> --animation fade \
+ --animation-duration 0.5 --animation-stagger 0.2
+```
+
+12 single effects: `appear / fade / fly / zoom / wipe / split / blinds / dissolve / peek / wheel / box / circle`, plus `mixed` and `random` auto-vary modes.
+
+**Anchor logic**: animations are anchored on top-level SVG `<g id="...">` groups (e.g. `<g id="cover-title">`, `<g id="card-1">`) — this is the cleanest cascade granularity. Slides whose root is flat `<rect>` / `<text>` / `<path>` (no top-level `<g>` wrappers) **fall back automatically**: if there are ≤20 top-level visible elements, each becomes one animation anchor; beyond 20 (typical of dense consulting pages / charts), animation is skipped on that slide — cascading dozens of atoms in series would just be noise. So Executors are recommended to wrap logical sections in `<g id>` regardless of animation, since it also improves PowerPoint's group-select / group-move ergonomics.
+
+**Note**: per-element animations only apply in native shapes mode (the default); `--only legacy` produces one image per slide and has no element anchors to animate.
+
## Q: Which AI model works best?
**Claude** (Opus / Sonnet) is the recommended and most tested model. SVG layout requires precise absolute-coordinate calculations (font size x character count x container width), and Claude handles this significantly better than alternatives.
diff --git a/docs/zh/faq.md b/docs/zh/faq.md
index e637782b..e6d373e7 100644
--- a/docs/zh/faq.md
+++ b/docs/zh/faq.md
@@ -54,6 +54,45 @@ PPT Master 本身免费开源,唯一的成本来自你自己的 AI 模型用
如果你的工作流明确需要 Excel 驱动的数据编辑,可以在导出后自己手动在 PowerPoint 里制作一张类似的原生图表。
+## Q: 页面切换和元素动画可以调吗?
+
+可以。导出的 PPTX 同时支持**页间转场**和**页内元素入场动画**,都通过 `svg_to_pptx.py` 的 CLI 参数控制。
+
+**页间转场**(默认开启 0.4s `fade`)
+
+```bash
+# 换效果:fade / push / wipe / split / strips / cover / random
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> -t push --transition-duration 0.6
+
+# 关闭转场
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> -t none
+
+# 自动定时翻页(每 5 秒)
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> --auto-advance 5
+```
+
+**页内动画**(默认关闭 —— 老用户更新后行为不变)
+
+进入新页 → 单击一次 → 各语义组按 z-order 依次入场。开启方式:
+
+```bash
+# 全部元素淡入级联(推荐起步)
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> --animation fade
+
+# 同页内自动混搭多种效果(标题 fade,内容轮换 fly/zoom/wipe...)
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> --animation mixed
+
+# 调慢节奏:每元素入场 0.5s、间隔 0.2s
+python3 skills/ppt-master/scripts/svg_to_pptx.py <project> --animation fade \
+ --animation-duration 0.5 --animation-stagger 0.2
+```
+
+12 种单效果可选:`appear / fade / fly / zoom / wipe / split / blinds / dissolve / peek / wheel / box / circle`,外加 `mixed`、`random` 两种自动混搭模式。
+
+**锚点逻辑**:动画以 SVG 顶层 `<g id="语义名">` 分组为单位(如 `<g id="cover-title">`、`<g id="card-1">`),这是最干净的级联粒度。如果某页根节点是平铺的 `<rect>`/`<text>`/`<path>`(没有顶层 `<g>` 包裹),导出器会**自动降级**:当顶层可见元素 ≤20 个时,每个元素作为一个动画锚点;超过 20 个(典型如咨询风密集页/图表页)则跳过动画 —— 几十个图元串行入场会变成噪声,跳过比硬上更合理。所以 Executor 输出建议把逻辑组都用 `<g id>` 包起来,既利于动画,也利于 PowerPoint 里成组选择/移动。
+
+**注意**:页内动画只在 native shapes 模式(默认)生效,`--only legacy` 整页一张图无可锚定元素。
+
## Q: 推荐用什么 AI 模型?
**Claude**(Opus / Sonnet)是推荐且测试最充分的模型。SVG 排版本质上是在绝对坐标系中做精确的数学计算(字号 x 字数 x 容器宽度),Claude 在这方面表现明显优于其他模型。
diff --git a/skills/ppt-master/references/shared-standards.md b/skills/ppt-master/references/shared-standards.md
index 094abf11..83b59d80 100644
--- a/skills/ppt-master/references/shared-standards.md
+++ b/skills/ppt-master/references/shared-standards.md
@@ -274,7 +274,7 @@ Wrap logically related elements in `<g>`. Produces PowerPoint groups in PPTX, ma
</g>
```
-**Naming**: descriptive `id` on `<g>` (e.g., `card-1`, `step-discover`, `header`, `footer`). Optional but recommended.
+**Naming**: descriptive `id` on top-level `<g>` is **required** (e.g., `card-1`, `step-discover`, `header`, `footer`). Each top-level `<g id>` becomes one anchor for per-element entrance animation in PPTX export; without it, the exporter falls back to top-level primitives (capped) or skips animation on dense pages.
---