From e09f931308c0ba3839793eb03971878494baeea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=B5=A9?= Date: Sun, 26 Apr 2026 11:47:24 +0800 Subject: [PATCH] feat: integrate Motion One animation system (default-on) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add assets/motion.min.js (local fallback for offline demos) - template.html: embed loader with local + CDN fallback chain, 5 recipes (cascade / hero / quote / directional / pipeline) - layouts.md: add data-anim markers to all 10 layouts, data-animate on pipeline / quote / directional layouts, Pre-flight section E documenting recipe decision tree - components.md: add Motion 动效系统 chapter with loader, data attributes, recipes table, decision tree, FAQ - checklist.md: add P1 entries 9b/9c and a 动效 self-check block - SKILL.md: document animations in features list, resource tree, and loading order hints Pipeline pages use manual advance: → / space / wheel-down light up steps one by one; final → advances to next slide. --- SKILL.md | 16 +++-- assets/motion.min.js | 8 +++ assets/template.html | 140 ++++++++++++++++++++++++++++++++++++++- references/checklist.md | 32 +++++++++ references/components.md | 70 ++++++++++++++++++++ references/layouts.md | 140 ++++++++++++++++++++++----------------- 6 files changed, 337 insertions(+), 69 deletions(-) create mode 100644 assets/motion.min.js diff --git a/SKILL.md b/SKILL.md index 6f7f9e5..e6c250f 100644 --- a/SKILL.md +++ b/SKILL.md @@ -15,6 +15,7 @@ description: 生成"电子杂志 × 电子墨水"风格的横向翻页网页 PPT - **Lucide 线性图标**(不用 emoji) - **横向左右翻页**(键盘 ← →、滚轮、触屏滑动、底部圆点、ESC 索引) - **主题平滑插值**:翻到 hero 页时颜色和 shader 柔顺过渡 +- **翻页入场动效**(Motion One 驱动,5 种 recipe 自动匹配布局,本地 + CDN 双保险,离线可用) 这个 skill 的美学不是"商务 PPT",也不是"消费互联网 UI"——它像 *Monocle* 杂志贴上了代码后的样子。 @@ -226,10 +227,11 @@ open "项目/XXX/ppt/index.html" guizang-ppt-skill/ ├── SKILL.md ← 你正在读 ├── assets/ -│ └── template.html ← 完整的可运行模板(种子文件) +│ ├── template.html ← 完整的可运行模板(种子文件) +│ └── motion.min.js ← Motion One 本地副本(离线兜底,约 64KB) └── references/ - ├── components.md ← 组件手册(字体、色、网格、图标、callout、stat、pipeline...) - ├── layouts.md ← 10 种页面布局骨架(可直接粘贴) + ├── components.md ← 组件手册(字体、色、网格、图标、callout、stat、pipeline、动效...) + ├── layouts.md ← 10 种页面布局骨架(可直接粘贴,含动效标记) ├── themes.md ← 5 套主题色预设(只能选不能自定义) └── checklist.md ← 质量检查清单(P0/P1/P2/P3 分级) ``` @@ -238,9 +240,11 @@ guizang-ppt-skill/ 1. 先读完 `SKILL.md`(这个文件)了解整体 2. Step 1 需求澄清完成后,读 `themes.md` 帮用户选定一套主题色 3. **动手前 Read `assets/template.html` 的 `