跳到正文
Skillpedia
技术文档101k · #1008

frontend-slides

它能做什么

这个工具可以生成直接在浏览器中运行的 HTML 演示文稿,并带有动画效果。你无需编写代码,就能做出视觉效果出色的幻灯片。

适用场景

  • ✓为会议快速制作一份演示文稿。
  • ✓为项目制作可视化材料。
  • ✓在线动态分享信息。

技能链接

https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/frontend-slides/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/nexu-io/open-design/blob/main/plugins/_official/examples/frontend-slides/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请用“Bold Signal”风格,做一份关于太阳能优势的演示文稿。”

每周 5 个新技能,1 分钟读完。

工作原理

你提供内容,工具会把它整理成一个 HTML 文件。视觉设计、动画和幻灯片导航都会自动处理。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Frontend Slides

Zero-dependency, animation-rich HTML presentations that run entirely in the browser. Curated from the MIT-licensed zarazhangrui/frontend-slides.

Start from example.html in this plugin folder. It is the proven seed: copy its stage CSS, slide shell, and the entire SlidePresentation controller script verbatim, then replace slide content. Do not rewrite the stage system, the navigation script, or the design tokens architecture from scratch.

Hard spec (locked — every deck must satisfy all of these)

Fixed 16:9 stage — NON-NEGOTIABLE

  • Every deck is authored on a fixed 1920×1080 canvas: .deck-viewport (fills the window) wraps .deck-stage (1920×1080, transform-origin: 0 0).
  • JavaScript scales the whole stage uniformly: factor = min(innerWidth/1920, innerHeight/1080), then translate(x, y) scale(factor) to center with letterbox/pillarbox. Re-run on resize.
  • Never reflow slide content per device. No responsive breakpoints inside slides. All slide measurements are fixed px at the 1920×1080 design size.
  • Include the FULL contents of references/viewport-base.css in the <style> block (the seed already embeds it).

Slide structure

  • Each page is one <section class="slide"> directly inside .deck-stage. Around 10 slides for a standard deck; split content into more slides rather than shrinking type.
  • Slide switching uses .active / .visible classes toggling visibility, opacity, pointer-events — never display: none/block (layout classes like display: flex on children would override it and show every slide at once).
  • No scrolling, no overflow, no overlapping panels, no text below comfortable reading size at 1920×1080.

Navigation runtime (keep the seed's script)

  • Keyboard: ←/→, ↑/↓, Space, PageUp/PageDown, Home/End.
  • Hash routing: current slide mirrored to #/<index>; deep links and hashchange restore the slide.
  • Mouse wheel (debounced ~650ms) and touch swipe (≥40px threshold).
  • Page counter chrome lives in .deck-controls, fixed-positioned outside the scaled stage.

Design tokens

  • All colors, fonts, sizes, and easing live in :root CSS custom properties; retheme by editing tokens only.
  • Typography: distinctive webfonts from Google Fonts or Fontshare — never Inter, Roboto, Arial, or system fonts as display type. Avoid #6366f1 indigo and purple-gradient-on-white clichés.
  • Pick one preset from references/STYLE_PRESETS.md (12 curated presets: Bold Signal, Electric Studio, Creative Voltage, Dark Botanical, Notebook Tabs, Pastel Geometry, Split Pastel, Vintage Editorial, Neon Cyber, Terminal Green, Swiss Modern, Paper & Ink) or design a custom system with the same discipline. The seed ships Bold Signal.

Layout vocabulary (compose slides from these)

title-card (colored focal card), agenda (numbered editorial list), section divider (giant outlined number), bullets (icon + heading + support line, max 4-6), big-stat (oversized number + side note), quote, two-column comparison, principle grid (2×2 cards), CSS bar chart (scaleY-animated bars), closing. Keep the slide-number top-left, breadcrumb nav top-right, and baseline rule bottom — that chrome is the deck's signature.

Motion

  • Entrances via .reveal elements that transition when the slide gains .visible; stagger with transition-delay steps (~0.1s).
  • One signature easing per deck (seed: cubic-bezier(0.16, 1, 0.3, 1)); animate only transform and opacity.
  • prefers-reduced-motion support is mandatory (included in viewport-base.css).
  • Match animation character to the content's feeling using references/animation-patterns.md.

Density modes

Ask (or infer) whether the deck is speaker-led or reading-first:

  • Low density / speaker-led — one idea per slide, large type, 1-3 bullets max, more slides.
  • High density / reading-first — self-contained slides, structured grids/tables, 4-6 cards max, still no overflow.

Output contract

  • Single self-contained .html file: all CSS and JS inline, no build step, no external JS libraries, no CDN scripts.
  • Icons are inline SVG. No remote images from slow CDNs; CSS-generated visuals (gradients, shapes, patterns) are a first-class path.
  • Comment every section: /* === SECTION NAME === */.
  • CSS gotcha: never negate CSS functions directly (-clamp() is silently ignored) — use calc(-1 * clamp(...)).

…

常见问题

需要安装什么吗?

不需要。演示文稿直接在浏览器中运行,无需任何安装。

我能修改颜色和字体吗?

可以。你可以从预设风格中选择,或调整“设计令牌(design tokens)”来自定义外观。

幻灯片是怎么切换的?

可以用键盘方向键、鼠标或触屏进行导航,切换时使用平滑的动画效果。

详情

作者的原始描述

OpenDesign as a worked AI-workflow example: how local agents read your files and design on your desktop — concretely. Built as a decision-grade AI literacy deck for teams new to AI, leadership.

repo: nexu-io/open-design

热度

GitHub 星标
101k
排名
#1008
许可证
Apache-2.0
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能