From cdae5bca82685afd913a944c6e6523a4022cf87b Mon Sep 17 00:00:00 2001 From: Zhiqing Shen Date: Sun, 24 May 2026 20:30:43 -0700 Subject: [PATCH] Switch to transform-based slide deck (no scrollbar, true slide-by-slide nav) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All slides now live inside a single
container. Navigation moves the deck via transform: translateY(-idx * 100vh) instead of scrolling. body is overflow: hidden so no scrollbar ever shows — the right-edge scrollbar in fullscreen presentation mode is a constant visual distraction. The feel becomes true slide-by-slide advancement rather than scrolling-that-snaps. A trackpad fine-scroll can no longer land between two slides. User-facing navigation is unchanged: arrow keys, space, mouse wheel, click slide, click nav dots all advance the active slide. Smooth between-slide motion is provided by a CSS transition on .deck, and is disabled under prefers-reduced-motion. Files changed: - viewport-base.css: html/body overflow hidden; new .deck rule with transition; removed scroll-snap-* and .slide scroll-snap-align; prefers-reduced-motion now also disables .deck transition. - html-template.md: body skeleton wraps slides in
; SlidePresentation controller rewritten to drive transform via goTo(); Intersection Observer replaced by a direct activate(idx) call that marks the active slide visible, updates dots and progress. - SKILL.md: Phase 5 navigation summary updated. --- SKILL.md | 2 +- html-template.md | 179 +++++++++++++++++++++++++++++++++------------- viewport-base.css | 57 ++++++++++----- 3 files changed, 168 insertions(+), 70 deletions(-) diff --git a/SKILL.md b/SKILL.md index dfd8ce0b..b82e54a7 100644 --- a/SKILL.md +++ b/SKILL.md @@ -210,7 +210,7 @@ When converting PowerPoint files: 2. **Open** — Use `open [filename].html` to launch in browser 3. **Summarize** — Tell the user: - File location, style name, slide count - - Navigation: Arrow keys, Space, scroll/swipe, click nav dots + - Navigation: Arrow keys, Space, mouse wheel, click slide / nav dots (no scrollbar — transform-based deck) - How to customize: `:root` CSS variables for colors, font link for typography, `.reveal` class for animations - If inline editing was enabled: Hover top-left corner or press E to enter edit mode, click any text to edit, Ctrl+S to save diff --git a/html-template.md b/html-template.md index 384e1a10..76b42092 100644 --- a/html-template.md +++ b/html-template.md @@ -91,65 +91,142 @@ Reference architecture for generating slide presentations. Every presentation fo - -
- - - - - -
-

Presentation Title

-

Subtitle or author

-
- -
-
-

Slide Title

-

Content...

-
-
- - + +
+ + + + + +
+
+

Presentation Title

+

Subtitle or author

+
+ +
+
+

Slide Title

+

Content...

+
+
+ + +