Frontend HTML Slides
Adapted for ApexCluster from zarazhangrui/frontend-slides (MIT).
Purpose
Create self-contained, browser-native slide decks (index.html or modular HTML/CSS/JS) that deliver cinema-grade typography, smooth transitions, responsive 16:9 viewport scaling, and live interactive demos—without requiring PowerPoint or fragile build chains.
Step 1: Deck Architecture & Aesthetic Setup
- Slide Plan: Outline 8–14 slides with a clear rhythm: Hero Cover → Problem Framing → Architecture/Concept → Interactive Visual/Code/Metrics → Roadmap/Takeaways.
- Visual System: Commit to a unified aesthetic (editorial dark, warm paper studio, minimalist monochrome, or technical blueprint) defined via
:rootCSS custom properties (--bg,--surface,--ink,--muted,--accent,--font-display,--font-body,--font-mono). - Viewport Discipline: Lock each slide to a clean
100vw × 100vh(or scaled16:9stage) canvas withoverflow: hiddenso slides never scroll awkwardly during live presentation.
Step 2: Essential Interactive Presentation Controls
Every web slide deck must include reliable, zero-dependency navigation:
- Keyboard:
ArrowRight/Space/PageDown(next),ArrowLeft/PageUp(previous),Home/End(first/last),F(fullscreen toggle),N(toggle speaker notes drawer),OorG(grid overview mode). - Pointer & Touch: Clickable subtle previous/next controls, clickable progress indicator bar, and horizontal swipe support for touchscreens.
- URL Hash Sync: Sync active slide index to
#slide-Nso refreshing or sharing a link lands directly on the target slide. - Print / PDF Export: Provide
@media printrules withpage-break-after: alwaysand landscape sizing so browser Print-to-PDF exports clean slides.
Step 3: Typography, Visuals & Motion
- Fluid Sizing: Scale headlines and body text with
clamp(...)so text stays legible from 1280px laptops to 4K projectors. - Rich Native Visuals: Prefer inline SVG diagrams, crisp CSS data bars, syntax-highlighted code blocks, and live interactive widgets over static low-res bitmaps.
- Staggered Entrance Motion: Animate slide elements cleanly using CSS transitions triggered on
.slide.is-active, keeping transitions snappy (250–500ms) and disabling animations underprefers-reduced-motion: reduce.
Step 4: Verification
- Verify the HTML file renders cleanly with zero external broken asset links (prefer self-contained single-file HTML when sharing portable decks).
- Check keyboard navigation, slide counter accuracy, text fit on both
1280x720and1920x1080, and readable contrast on every slide.


