⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

v0.2.0

html-slides

proyecto26@proyecto26⭐ 47 stars· last commit 7mo ago· 0 open issues

Used when the user asks to "create HTML slides", "generate an HTML presentation", "make animated slides", "build interactive slides", "create web slides", "GSAP presentation", "browser-based slides", "convert PPTX to HTML", "animated deck", "reveal.js slides", or when the output format is HTML for any presentation task. Also triggers on "single-file presentation", "CSS animations in slides", "scroll-based slides", or "web presentation". Generates self-contained, single-file HTML with viewport fi

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐⭐ 47 on GitHubGitHub ↗

Growing

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

Slides AI Plugin

License: MIT Claude Code Formats Style Presets TypeScript

https://github.com/user-attachments/assets/3c7250dd-59d7-4eea-835b-12a3c0871bb3

Turn any idea, outline, or existing deck into a professional presentation — straight from Claude Code. Generate animated HTML decks (GSAP + CSS, single-file, viewport-fitted) or fully editable PowerPoint (.pptx) files with 12 curated style presets, adaptive typography, layout validation, and speaker notes — just ask Claude.


Quick Start

Installation

Option 1: CLI Install (Recommended)

Use npx skills to install skills directly:

# Install the skill
npx skills add proyecto26/slides-ai-plugin

# List available skills
npx skills add proyecto26/slides-ai-plugin --list

This automatically installs to your .claude/skills/ directory.

Option 2: Claude Code Plugin

Install via Claude Code's built-in plugin system:

# Add the marketplace
/plugin marketplace add proyecto26/slides-ai-plugin

# Install the plugin
/plugin install slides-ai-plugin

Option 3: Clone and Copy

Clone the repo and copy the skills folder:

git clone https://github.com/proyecto26/slides-ai-plugin.git
cp -r slides-ai-plugin/skills/* .claude/skills/

Option 4: Git Submodule

Add as a submodule for easy updates:

git submodule add https://github.com/proyecto26/slides-ai-plugin.git .claude/slides-ai-plugin

Then reference skills from .claude/slides-ai-plugin/skills/.

Option 5: Fork and Customize

  1. Fork this repository
  2. Customize skills, presets, and helpers for your brand
  3. Clone your fork into your projects

Generate Your First Deck

Just describe what you want:

"Create a 15-minute conference talk about AI adoption for engineering teams, with a bold editorial style — both HTML and PPTX."

That's it — the skill handles everything: content discovery, structure planning, style selection, slide generation, and validation. Outputs land in your working directory as .html and/or .pptx files.


Features

Orchestrated Pipeline

The slide-design skill drives the full workflow from raw idea to validated deck. It handles:

  1. Content discovery — topic, audience, duration, tone, existing content
  2. Structure planning — duration-indexed slide count with tagged slide types
  3. Style selection — pick from 12 curated presets or mix backgrounds per section
  4. Format selection — HTML, PPTX, or both
  5. Generation — delegates to html-slides or pptx-slides
  6. Validation — density limits, speaker notes, overlaps, viewport fitting

Supported Formats

FormatOutputBest ForKey Capabilities
HTMLSingle .html fileConference talks, web sharing, live demosGSAP timelines, CSS animations, viewport fitting, Mermaid diagrams, inline video, contenteditable live edit
PPTXOOXML .pptxCorporate sharing, offline editing, templatesNative text boxes, editable shapes, speaker notes, master layouts, adaptive font sizing

Duration-Indexed Structure

DurationSlidesStructure
5 min (Lightning)5-7Hook → 2-3 key points → CTA
15 min (Short talk)12-18Intro → 3-4 sections → Summary → CTA
30 min (Conference)25-35Title → Agenda → 5-6 sections → Q&A
45 min (Keynote)35-50Title → Agenda → 7-8 sections → Summary → CTA
60 min (Workshop)40-60Title → Agenda → Sections with exercises → Wrap-up

Slide Type Vocabulary

Every slide is tagged with a type — the generator picks the right template and density rules:

title, section-divider, content, image-focus, comparison, quote, code, feature-grid, timeline, metrics, meme-gif, diagram, demo-divider, audience-question, closing.

Style Presets

12 curated visual identities with typography pairs, color palettes, and signature elements:

darkMonospace, swissModern, boldSignal, darkBotanical, cleanCorporate, neonCyber, warmMinimal, vintageEditorial, terminalGreen, gradientWave, midnightBlue, paperInk.

Mix presets across sections for multi-mood decks (e.g., cream for content, black for demos, accent color for section dividers).

HTML Generation Highlights

  • Single-file, zero runtime deps — inline CSS/JS, no build step
  • Viewport-fitted — every slide locks to 100vh/100dvh with overflow: hidden, clamp() typography
  • GSAP animations — timelines, SplitText, ScrollTrigger, spring physics (Remotion-inspired damping presets)
  • CSS-first fallback — animations work with JS disabled via staggered .reveal classes
  • Accessibility — prefers-reduced-motion respected, semantic HTML
  • Mermaid + Prism.js — flowcharts, sequence diagrams, syntax-highlighted code
  • Inline edit mode — contenteditable attributes let users tweak text in the browser

PPTX Generation Highlights

  • PptxGenJS + Bun — TypeScript helpers run with npx -y bun, no build step
  • skia-canvas text measurement — autoFontSize() fits paragraphs to exact boxes; scale() is the PPTX equivalent of CSS clamp()
  • Layout validators — overlap detection, bounds checking, alignment/distribution helpers
  • High-level builders — addFeatureGrid(), addCardRow(), addTimeline(), addMetricsRow(), addComparisonTable()
  • Decorative personality — addStaircase(), addSectionBadge(), addProgressBar(), addSlideNumber()
  • Syntax highlighting — codeToRuns() converts Prism.js tokens into PptxGenJS text runs
  • Pre-save validation — validateDeck() enforces font minimums, bullet caps, speaker notes, boundaries
  • Editable by design — native text boxes, native shapes, grouped elements, speaker notes on every content slide

Automatic Validation Hooks

Built-in PostToolUse and Stop hooks inspect every generated file:

  • PPTX → verifies h.validateDeck() was run and speaker notes exist
  • HTML → verifies viewport CSS (100vh/100dvh), prefers-reduced-motion, and clamp() typography
  • Stop → blocks task completion if slides were requested but not delivered with speaker notes

PPTX → HTML Conversion

Bring legacy decks into the modern web:

python ${CLAUDE_PLUGIN_ROOT}/skills/html-slides/scripts/extract-pptx.py deck.pptx

Extracts text, images, and speaker notes into JSON — then the slide-design skill rebuilds it as an animated HTML presentation with your chosen style preset.


Usage Examples

Just describe what you need to Claude — the slide-design orchestrator triggers automatically:

"I need to create slides for my 30-min conference talk on AI adoption for engineering teams"

Runs content discovery → structure planning → style selection → generates both HTML and PPTX.

"Convert this PPTX into an interactive HTML deck with GSAP animations"

Extracts text/images/notes from the .pptx, rebuilds as a single-file animated HTML with viewport fitting.

"Turn my markdown outline into a pitch deck with the boldSignal style"

Applies the boldSignal preset, maps bullets to slide types, generates .pptx with validation.

"Create a 5-minute lightning talk with meme-driven tone and a mixed-background deck"

Structures 5-7 slides, alternates backgrounds per section, injects meme/GIF slides.

**"Generate a c

// HOW IT'S BUILT

// FILES

6 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • skills/html-slides/SKILL.md11 KB8bb96c3b06edupstream ↗
    ---
    name: html-slides
    description: Used when the user asks to "create HTML slides", "generate an HTML presentation", "make animated slides", "build interactive slides", "create web slides", "GSAP presentation", "browser-based slides", "convert PPTX to HTML", "animated deck", "reveal.js slides", or when the output format is HTML for any presentation task. Also triggers on "single-file presentation", "CSS animations in slides", "scroll-based slides", or "web presentation". Generates self-contained, single-file HTML with viewport fitting, CSS/GSAP animations, and curated style presets.
    version: 0.2.1
    ---
    
    # HTML Slides — Animated, Viewport-Fitted Presentations
    
    Generate single-file, self-contained HTML presentations with professional animations, responsive viewport fitting, and curated style presets. Zero external dependencies at runtime — all CSS/JS inline.
    
    ## Architecture
    
    Every HTML presentation follows this structure:
    
    1. **Single file** — One `.html` file with inline CSS and JS (no build tools)
    2. **Viewport fitted** — Each slide locks to `100vh`/`100dvh` with `overflow: hidden`
    3. **CSS custom properties** — All theming via `:root` variables for easy restyling
    4. **Semantic HTML** — `<section>` per slide, `<nav>` for controls
    5. **Progressive enhancement** — Works without JS, animations enhance with JS
    
    ## Mandatory Viewport Rules
    
    Apply the viewport base CSS from `assets/viewport-base.css` to EVERY presentation. Key rules:
    
    - Every slide: `height: 100vh; height: 100dvh; overflow: hidden`
    - All typography uses `clamp(min, preferred, max)` for responsive scaling
    - Images constrained to `min(50vh, 400px)` max height
    - Responsive breakpoints at 700px, 600px, 500px heights
    - `prefers-reduced-motion` support included
    - Grid fallback: `grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr))`
    
    Never allow scrolling within a slide. If content exceeds capacity, split across multiple slides.
    
    **Edge Case: Negative Clamp Values**
    Use `calc(-1 * clamp(...))` when you need negative viewport-edge spacing (e.g., negative margins, negative padding). This pattern preserves the clamp function's responsiveness while inverting the value.
    
    **iOS Safari 100vh Bug**
    The `100vh` unit in iOS Safari includes the address bar, causing content to overflow. Always pair `100vh` with `100dvh` (dynamic viewport height) in fallback chains. Modern viewports ignore `100vh` if `100dvh` is present.
    
    ## Animation System
    
    ### CSS-First Approach (Default)
    
    Use CSS animations as the baseline. Apply `.reveal` class with staggered `transition-delay`:
    
    ```css
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
    }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }
    ```
    
    Trigger with Intersection Observer adding `.visible` class on viewport entry.
    
    **Easing**: `--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1)` for all entrance animations.
    
    ### GSAP Enhancement (When Requested)
    
    For sophisticated animations, load GSAP from CDN and use timeline-based choreography. Consult `references/animation-patterns.md` for detailed GSAP recipes and the [GSAP docs](https://gsap.com/docs/) for API reference. Key integration points:
    
    - Load GSAP + ScrollTrigger from `https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js`
    - Use `gsap.timeline()` for sequenced slide entrance animations
    - Apply `gsap.matchMedia()` for responsive animation behavior
    - Respect `prefers-reduced-motion` — disable animations when active
    
    **Timeline Entrance with Position Parameter**
    Stagger reveals without explicit delays using the position parameter in timeline. Example:
    ```javascript
    const tl = gsap.timeline();
    tl.to('.heading', { opacity: 1, duration: 0.6 })
      .to('.subtitle', { opacity: 1, duration: 0.4 }, '<0.2') // Starts 0.2s before heading ends
      .to('.bullet', { opacity: 1, stagger: 0.1 }, '<0.15');
    ```
    
    **SplitText for Headlines and Word/Char Reveals**
    Animate individual words or characters in headlines:
    ```javascript
    gsap.registerPlugin(SplitText);
    const split = new SplitText('.headline', { type: 'words,chars' });
    gsap.from(split.chars, { 
      opacity: 0, 
      duration: 0.4, 
      stagger: 0.05,
      ease: 'back.out'
    });
    ```
    
    **ScrollTrigger for Slide-by-Slide Navigation**
    Tie slide transitions to scroll position for interactive presentations:
    ```javascript
    gsap.registerPlugin(ScrollTrigger);
    gsap.to('.slide', {
      scrollTrigger: {
        trigger: '.slide-container',
        pin: true,
        scrub: 1,
        snap: 1 / slideCount
      }
    });
    ```
    
    **Spring Physics Timing from Remotion**
    Translate Remotion spring physics into GSAP elastic easing for natural motion:
    - **Smooth** (damping: 200) → `elastic.out(1, 0.1)` — subtle bounce, feels polished
    - **Snappy** (damping: 20) → `elastic.out(1, 0.35)` — noticeable spring, modern feel
    - **Bouncy** (damping: 8) → `elastic.out(1, 0.5)` — playful bounce, energetic
    
    ### Animation Inventory
    
    | Animation | CSS Class | Use Case |
    |-----------|----------|----------|
    | Fade + slide up | `.reveal` | Default entrance for text/cards |
    | Scale in | `.reveal-scale` | Images, feature cards |
    | Slide from left | `.reveal-left` | Two-column content |
    | Blur in | `.reveal-blur` | Background elements, overlays |
    | Stagger | `:nth-child(n)` delay | Lists, grid items |
    
    ### Animation Guidelines
    
    - **Playful**: Bouncy easing, 400-600ms, staggered reveals
    - **Professional**: Subtle fades, 200-300ms, minimal movement
    - **Cinematic**: Slow fades 1-1.5s, parallax, scale transitions
    - **Technical**: Sharp, fast (150-200ms), no bounce
    
    ## Slide Navigation
    
    Include keyboard navigation (arrows, space, Page Up/Down), touch/swipe support, and optional progress indicator. Template in `references/html-template.md`.
    
    ## Style Preset Application
    
    Read style preset definitions from the parent `slide-design` skill's `references/style-presets.md`. Each preset maps to CSS custom properties:
    
    ```css
    :root {
      --bg-primary: #0a0a0a;
      --bg-secondary: #1a1a1a;
      --text-primary: #ffffff;
      --text-secondary: #a0a0a0;
      --accent: #4a9eff;
      --accent-secondary: #ff6b6b;
      --font-heading: 'Clash Display', sans-serif;
      --font-body: 'IBM Plex Sans', sans-serif;
      --title-size: clamp(2rem, 6vw, 5rem);
      --body-size: clamp(0.9rem, 2vw, 1.25rem);
      --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    }
    ```
    
    Load fonts from Google Fonts or Fontshare — never rely on system fonts for headings.
    
    ## Slide Type Templates
    
    For each slide type, follow the HTML patterns in `references/html-template.md`. Key templates:
    
    - **Title slide** — Full-viewport hero with heading, subtitle, optional background image
    - **Content slide** — Heading + bullet list or paragraphs with staggered reveal
    - **Two-column** — Side-by-side layout with image + text or code + explanation
    - **Image focus** — Full-bleed or centered image with caption overlay
    - **Code slide** — Syntax-highlighted code block with Prism.js (CDN loaded)
    - **Comparison** — Side-by-side cards or before/after layout
    - **Quote** — Centered blockquote with attribution
    - **Feature grid** — CSS Grid cards (max 6) with icons/titles/descriptions
    - **Timeline** — Horizontal or vertical milestone layout
    
    ## Mermaid Diagram Support
    
    For technical presentations, embed Mermaid diagrams:
    
    1. Include Mermaid CDN: `https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.0/mermaid.min.js`
    2. Use `<pre class="mermaid">` blocks for diagrams
    3. Support flowcharts, sequence diagrams, class diagrams, and ER diagrams
    4. Style with theme variables matching the presentation palette
    
    ## PDF Export Support
    
    Include an optional print stylesheet for PDF export via browser print:
    
    ```css
    @media print {
      .slide { page-break-after: always; height: 100vh; }
      .nav, .progress { display: none; }
      .reveal { opacity: 1; transform: none; }
    }
    ```
    
    ## Anti-Patterns
    
    Avoid these common mistakes:
    - Scrolling within slides (always `overflow: hidden`)
    - System fonts for headings (always load web fonts)
    - Generic "AI slop" aesthetics (purple gradients, Inter everywhere)
    - Inline styles (use CSS custom properties)
    - Missing `prefers-reduced-motion` support
    - Images without size constraints
    - More than 6 items in a feature grid
    
    ## Show Don't Tell
    
    Embody the principle of visual communication. Enhance instructions with visual weight and intentionality:
    
    - **"Make it bold"** — Pair font weight increase with size increase AND accent color. A truly bold element dominates the hierarchy.
    - **"Make it stand out"** — Combine `z-index` layering, `scale` transformation, AND contrasting color simultaneously. Isolation requires all three.
    - **"One idea per slide"** — When content exceeds capacity, split across slides. Never shrink fonts below the minimum size threshold. Cramping is a design failure.
    - **Visual hierarchy rule**: The most important element should be **3x the size** of supporting elements. If a headline is 3rem, body text should be ~1rem. Apply this ratio consistently.
    
    ## Mixed-Background Decks
    
    Many professional presentations alternate background colors across slide groups. To implement this:
    
    - Define a `data-theme` attribute per `<section>` (e.g., `data-theme="coral"`, `data-theme="dark"`, `data-theme="cream"`)
    - Map each theme to CSS custom property overrides via `[data-theme="coral"] { --bg-primary: #E8845C; --text-primary: #fff; }`
    - Maintain font and layout consistency even when backgrounds change
    - Use contrasting backgrounds to signal section transitions (e.g., black for demo sections, cream for infographics)
    
    ## Inline Edit Mode
    
    Generated HTML can include `contenteditable="true"` attributes on text elements, allowing users to edit slides directly in the browser before presenting.
    
    To enable inline editing, add `contenteditable="true"` to text elements:
    ```html
    <h1 contenteditable="true">Edit this headline</h1>
    <p contenteditable="true">Edit this paragraph</p>
    ```
    
    Include this CSS for visual feedback:
    ```css
    [contenteditable]:hover {
      outline: 2px dashed var(--accent);
      cursor: text;
    }
    
    [contenteditable]:focus {
      outline: 2px solid var(--accent);
    }
    ```
    
    Users can click any editable element, make changes live, and present without exporting. Disable with `contenteditable="false"` if read-only mode is preferred.
    
    ## Additional Resources
    
    ### Reference Files
    
    - **`references/html-template.md`** — Complete HTML boilerplate with navigation, all slide type templates
    - **`references/animation-patterns.md`** — CSS and GSAP animation recipes with timing and easing
    
    ### Asset Files
    
    - **`assets/viewport-base.css`** — Mandatory viewport CSS (include in every presentation)
    
    ### Script Files
    
    - **`scripts/extract-pptx.py`** — Extract text, images, and notes from PPTX files to JSON for HTML conversion
    
  • skills/html-slides/scripts/extract-pptx.py4.7 KBad5849bf76d4upstream ↗
    #!/usr/bin/env python3
    """
    Extract text, images, and speaker notes from a PPTX file to JSON.
    Used for converting existing PowerPoint presentations to HTML slides.
    
    Usage:
        python extract-pptx.py <input.pptx> [--output extracted-slides.json] [--assets-dir assets/]
    
    Dependencies:
        pip install python-pptx Pillow --break-system-packages
    """
    
    import argparse
    import json
    import os
    import sys
    
    def extract_pptx(pptx_path, output_path="extracted-slides.json", assets_dir="assets/"):
        """Extract slides from a PPTX file into structured JSON."""
        try:
            from pptx import Presentation
            from pptx.util import Inches, Pt, Emu
        except ImportError:
            print("Error: python-pptx is required. Install with:")
            print("  pip install python-pptx --break-system-packages")
            sys.exit(1)
    
        if not os.path.exists(pptx_path):
            print(f"Error: File not found: {pptx_path}")
            sys.exit(1)
    
        os.makedirs(assets_dir, exist_ok=True)
    
        prs = Presentation(pptx_path)
        slides_data = []
        image_count = 0
    
        for slide_num, slide in enumerate(prs.slides, 1):
            slide_info = {
                "slide_number": slide_num,
                "title": "",
                "content": [],
                "images": [],
                "notes": "",
                "layout": "content"
            }
    
            # Extract shapes
            for shape in slide.shapes:
                # Title
                if shape.has_text_frame and shape.shape_id == slide.shapes.title.shape_id if slide.shapes.title else False:
                    slide_info["title"] = shape.text_frame.text.strip()
                    continue
    
                # Text content
                if shape.has_text_frame:
                    for paragraph in shape.text_frame.paragraphs:
                        text = paragraph.text.strip()
                        if text:
                            slide_info["content"].append({
                                "text": text,
                                "level": paragraph.level,
                                "bold": any(run.font.bold for run in paragraph.runs if run.font.bold),
                                "font_size": str(paragraph.runs[0].font.size) if paragraph.runs and paragraph.runs[0].font.size else None
                            })
    
                # Images
                if shape.shape_type == 13:  # Picture type
                    image_count += 1
                    image_name = f"slide{slide_num}_img{image_count}.png"
                    image_path = os.path.join(assets_dir, image_name)
    
                    try:
                        image_blob = shape.image.blob
                        with open(image_path, "wb") as f:
                            f.write(image_blob)
                        slide_info["images"].append({
                            "filename": image_name,
                            "path": image_path,
                            "width": shape.width,
                            "height": shape.height
                        })
                    except Exception as e:
                        print(f"  Warning: Could not extract image from slide {slide_num}: {e}")
    
            # If no title found via shape_id, use first text shape
            if not slide_info["title"] and slide_info["content"]:
                slide_info["title"] = slide_info["content"][0]["text"]
                slide_info["content"] = slide_info["content"][1:]
    
            # Speaker notes
            if slide.has_notes_slide and slide.notes_slide.notes_text_frame:
                slide_info["notes"] = slide.notes_slide.notes_text_frame.text.strip()
    
            # Detect layout type
            if not slide_info["content"] and slide_info["images"]:
                slide_info["layout"] = "image-focus"
            elif slide_info["images"] and slide_info["content"]:
                slide_info["layout"] = "two-column"
            elif slide_num == 1:
                slide_info["layout"] = "title"
            elif len(slide_info["content"]) == 0:
                slide_info["layout"] = "section-divider"
    
            slides_data.append(slide_info)
    
        # Write output
        output = {
            "source": os.path.basename(pptx_path),
            "total_slides": len(slides_data),
            "slides": slides_data
        }
    
        with open(output_path, "w", encoding="utf-8") as f:
            json.dump(output, f, indent=2, ensure_ascii=False, default=str)
    
        print(f"Extracted {len(slides_data)} slides to {output_path}")
        print(f"Saved {image_count} images to {assets_dir}")
        return output
    
    
    if __name__ == "__main__":
        parser = argparse.ArgumentParser(description="Extract PPTX slides to JSON for HTML conversion")
        parser.add_argument("pptx_path", help="Path to the .pptx file")
        parser.add_argument("--output", "-o", default="extracted-slides.json", help="Output JSON path")
        parser.add_argument("--assets-dir", "-a", default="assets/", help="Directory for extracted images")
        args = parser.parse_args()
    
        extract_pptx(args.pptx_path, args.output, args.assets_dir)
    
  • skills/html-slides/references/animation-patterns.md9.9 KB53b013511fadupstream ↗
    # Animation Patterns
    
    CSS and GSAP animation recipes for HTML slide presentations. All patterns include timing, easing, and accessibility considerations.
    
    ## CSS Animation Recipes
    
    ### Staggered List Reveal
    
    Reveal list items one by one with staggered delay:
    
    ```css
    .stagger-list li {
      opacity: 0;
      transform: translateY(15px);
      transition: all 0.5s var(--ease-out-expo);
    }
    .stagger-list.visible li:nth-child(1) { transition-delay: 0s; }
    .stagger-list.visible li:nth-child(2) { transition-delay: 0.08s; }
    .stagger-list.visible li:nth-child(3) { transition-delay: 0.16s; }
    .stagger-list.visible li:nth-child(4) { transition-delay: 0.24s; }
    .stagger-list.visible li:nth-child(5) { transition-delay: 0.32s; }
    .stagger-list.visible li:nth-child(6) { transition-delay: 0.40s; }
    .stagger-list.visible li {
      opacity: 1;
      transform: translateY(0);
    }
    ```
    
    ### Card Grid Pop-In
    
    Cards scale in from 0.8 with rotation:
    
    ```css
    .card-pop {
      opacity: 0;
      transform: scale(0.8) rotate(-2deg);
      transition: all 0.6s var(--ease-out-expo);
    }
    .card-pop.visible {
      opacity: 1;
      transform: scale(1) rotate(0deg);
    }
    ```
    
    ### Gradient Background Animation
    
    Subtle background movement:
    
    ```css
    .gradient-bg {
      background: linear-gradient(-45deg, var(--bg-primary), var(--bg-secondary), var(--accent), var(--bg-primary));
      background-size: 400% 400%;
      animation: gradientShift 15s ease infinite;
    }
    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    ```
    
    ### Counter Animation
    
    Animate numbers counting up (requires JS):
    
    ```javascript
    function animateCounter(element, target, duration = 2000) {
      const start = 0;
      const startTime = performance.now();
      function update(currentTime) {
        const elapsed = currentTime - startTime;
        const progress = Math.min(elapsed / duration, 1);
        const eased = 1 - Math.pow(1 - progress, 3); // ease-out cubic
        element.textContent = Math.floor(eased * target).toLocaleString();
        if (progress < 1) requestAnimationFrame(update);
        else element.textContent = target.toLocaleString();
      }
      requestAnimationFrame(update);
    }
    ```
    
    ### Typewriter Effect
    
    ```css
    .typewriter {
      overflow: hidden;
      white-space: nowrap;
      border-right: 2px solid var(--accent);
      animation: typing 2s steps(40) 0.5s forwards, blink 0.7s step-end infinite;
      width: 0;
    }
    @keyframes typing { to { width: 100%; } }
    @keyframes blink { 50% { border-color: transparent; } }
    ```
    
    ### Parallax Layers
    
    ```css
    .parallax-container {
      position: relative;
      overflow: hidden;
    }
    .parallax-bg {
      position: absolute;
      top: -10%;
      left: -5%;
      width: 110%;
      height: 120%;
      transition: transform 0.1s linear;
    }
    ```
    
    ```javascript
    // Move background based on scroll position
    document.addEventListener('scroll', () => {
      const bg = document.querySelector('.parallax-bg');
      if (bg) {
        const scrolled = window.scrollY;
        bg.style.transform = `translateY(${scrolled * 0.3}px)`;
      }
    });
    ```
    
    ## GSAP Animation Recipes
    
    Load GSAP from CDN:
    ```html
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"></script>
    ```
    
    ### Timeline Slide Entrance
    
    ```javascript
    function animateSlideEntrance(slideEl) {
      const tl = gsap.timeline();
      const title = slideEl.querySelector('.slide-title');
      const items = slideEl.querySelectorAll('.reveal');
    
      tl.from(title, { y: 30, opacity: 0, duration: 0.6, ease: 'expo.out' })
        .from(items, { y: 20, opacity: 0, duration: 0.5, stagger: 0.1, ease: 'expo.out' }, '-=0.3');
    
      return tl;
    }
    ```
    
    ### Spring-Based Card Animation
    
    ```javascript
    gsap.from('.card', {
      scale: 0.8,
      opacity: 0,
      duration: 0.8,
      stagger: 0.15,
      ease: 'elastic.out(1, 0.5)',
      scrollTrigger: { trigger: '.card-grid', start: 'top 80%' }
    });
    ```
    
    ### Text Split Animation
    
    ```javascript
    // Split heading into characters
    const heading = document.querySelector('.split-heading');
    heading.innerHTML = heading.textContent.split('').map(char =>
      `<span style="display:inline-block">${char === ' ' ? '&nbsp;' : char}</span>`
    ).join('');
    
    gsap.from('.split-heading span', {
      y: 60,
      opacity: 0,
      rotateX: -90,
      stagger: 0.03,
      duration: 0.6,
      ease: 'back.out(1.7)'
    });
    ```
    
    ### Morphing Number Counter
    
    ```javascript
    gsap.to('.metric-number', {
      textContent: 300000,
      duration: 2,
      ease: 'power2.out',
      snap: { textContent: 1 },
      onUpdate: function() {
        this.targets()[0].textContent = Math.floor(this.targets()[0].textContent).toLocaleString();
      }
    });
    ```
    
    ### Responsive Animation with matchMedia
    
    ```javascript
    gsap.matchMedia().add({
      isDesktop: '(min-width: 800px)',
      isMobile: '(max-width: 799px)',
      reduceMotion: '(prefers-reduced-motion: reduce)'
    }, (context) => {
      let { isDesktop, reduceMotion } = context.conditions;
    
      if (reduceMotion) return; // Skip all animations
    
      gsap.from('.slide-title', {
        y: isDesktop ? 40 : 20,
        opacity: 0,
        duration: isDesktop ? 0.8 : 0.5,
        ease: 'expo.out'
      });
    });
    ```
    
    ## GSAP Advanced Patterns
    
    ### Timeline with Position Parameter
    
    ```javascript
    function animateSlideIn(slideEl) {
      const tl = gsap.timeline({ defaults: { ease: 'expo.out' } });
      tl.from(slideEl.querySelector('.slide-title'), { y: 40, opacity: 0, duration: 0.7 })
        .from(slideEl.querySelector('.slide-subtitle'), { y: 30, opacity: 0, duration: 0.5 }, '<0.2')
        .from(slideEl.querySelectorAll('.reveal'), { y: 20, opacity: 0, stagger: 0.08, duration: 0.5 }, '<0.15');
      return tl;
    }
    ```
    
    The `"<0.2"` position parameter means "0.2s after the START of the previous tween" — creating overlapping, choreographed entrances instead of sequential waits. This keeps motion flowing naturally rather than waiting for each step to complete.
    
    ### SplitText Headline Reveal
    
    ```javascript
    // Using GSAP SplitText plugin (or manual word split)
    function splitReveal(selector) {
      const el = document.querySelector(selector);
      const words = el.textContent.split(' ');
      el.innerHTML = words.map(w => `<span class="word" style="display:inline-block;overflow:hidden"><span class="word-inner" style="display:inline-block">${w}</span></span>`).join(' ');
      return gsap.from(`${selector} .word-inner`, {
        yPercent: 110,
        duration: 0.8,
        stagger: 0.04,
        ease: 'expo.out'
      });
    }
    ```
    
    Each word clips behind its wrapper during reveal — creates the cinematic "rising text" effect where words appear to slide up from below while staying perfectly clipped.
    
    ### ScrollTrigger Slide Navigation
    
    ```javascript
    // Pin each slide and transition on scroll
    gsap.utils.toArray('.slide').forEach((slide, i) => {
      ScrollTrigger.create({
        trigger: slide,
        start: 'top top',
        pin: true,
        pinSpacing: true,
        onEnter: () => animateSlideIn(slide),
        onEnterBack: () => animateSlideIn(slide)
      });
    });
    ```
    
    Pins each slide in the viewport while allowing scrolling to trigger animations. Re-animates when scrolling back up (onEnterBack) for a smooth, reversible experience.
    
    ### Reusable animateSlide Template
    
    ```javascript
    function animateSlide(slide, options = {}) {
      const { mood = 'professional' } = options;
      const config = {
        professional: { duration: 0.5, stagger: 0.06, ease: 'power2.out' },
        playful:      { duration: 0.7, stagger: 0.1,  ease: 'back.out(1.7)' },
        cinematic:    { duration: 1.2, stagger: 0.15, ease: 'power1.inOut' },
        energetic:    { duration: 0.4, stagger: 0.08, ease: 'back.out(2)' }
      };
      const c = config[mood] || config.professional;
      const tl = gsap.timeline({ defaults: { ease: c.ease, duration: c.duration } });
      const title = slide.querySelector('.slide-title');
      const items = slide.querySelectorAll('.reveal, .reveal-scale, .reveal-left');
      if (title) tl.from(title, { y: 40, opacity: 0 });
      if (items.length) tl.from(items, { y: 20, opacity: 0, stagger: c.stagger }, '<0.2');
      return tl;
    }
    ```
    
    A reusable template that adapts animation character based on presentation mood. Pass different mood options to get professional, playful, cinematic, or energetic timing without duplicating animation logic.
    
    ## Spring Physics Timing (Remotion-Inspired)
    
    Translate Remotion spring configurations to GSAP easing equivalents. Spring physics creates natural, organic motion that feels responsive:
    
    - **Smooth** (damping: 200) → `gsap.to(el, { ease: 'power3.out', duration: 0.8 })` — heavily damped, no overshoot. Settled, refined motion.
    - **Snappy** (damping: 20) → `gsap.to(el, { ease: 'back.out(1.2)', duration: 0.5 })` — slight overshoot then settle. Quick with anticipation.
    - **Bouncy** (damping: 8) → `gsap.to(el, { ease: 'elastic.out(1, 0.4)', duration: 1.0 })` — visible oscillation. Playful and energetic.
    - **Heavy** (mass: 5) → increase `duration` by 2-3x for weighty, deliberate movement. Feels substantial.
    
    | Remotion Spring | GSAP Equivalent | Duration | Character |
    |----------------|-----------------|----------|-----------|
    | smooth (damping: 200) | power3.out | 0.6-0.8s | Settled, no bounce |
    | snappy (damping: 20) | back.out(1.2) | 0.4-0.6s | Quick with overshoot |
    | bouncy (damping: 8) | elastic.out(1, 0.4) | 0.8-1.2s | Playful oscillation |
    | heavy (mass: 5) | power2.inOut (2x duration) | 1.5-2.0s | Deliberate, weighty |
    
    ## Timing Guidelines by Mood
    
    | Mood | Duration | Easing | Stagger |
    |------|----------|--------|---------|
    | Playful | 400-600ms | `back.out(1.7)` or `elastic.out(1, 0.5)` | 0.1-0.15s |
    | Professional | 200-300ms | `power2.out` or `expo.out` | 0.05-0.08s |
    | Cinematic | 800-1500ms | `power1.inOut` or `sine.inOut` | 0.15-0.25s |
    | Technical | 150-250ms | `power3.out` | 0.03-0.05s |
    | Energetic | 300-500ms | `back.out(2)` | 0.08-0.12s |
    
    ## Accessibility
    
    Always wrap animation code in a reduced-motion check:
    
    ```javascript
    const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
    
    if (!prefersReducedMotion) {
      // Run animations
    } else {
      // Make all elements visible immediately
      document.querySelectorAll('.reveal, .reveal-scale, .reveal-left, .reveal-blur')
        .forEach(el => el.classList.add('visible'));
    }
    ```
    
  • skills/html-slides/references/html-template.md10 KB6e20871aaea9upstream ↗
    # HTML Slide Template
    
    Complete boilerplate for a single-file HTML presentation with navigation, animations, and responsive viewport fitting.
    
    ## Full Boilerplate
    
    ```html
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>PRESENTATION_TITLE</title>
    
      <!-- Fonts (customize per style preset) -->
      <link rel="preconnect" href="https://fonts.googleapis.com">
      <link href="https://fonts.googleapis.com/css2?family=HEADING_FONT:wght@400;700&family=BODY_FONT:wght@300;400;500;700&display=swap" rel="stylesheet">
    
      <!-- Optional: Prism.js for code highlighting -->
      <link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet">
    
      <style>
        /* === THEME VARIABLES === */
        :root {
          --bg-primary: #0a0a0a;
          --bg-secondary: #1a1a1a;
          --text-primary: #ffffff;
          --text-secondary: #999999;
          --accent: #4a9eff;
          --accent-secondary: #ff6b6b;
          --font-heading: 'HEADING_FONT', sans-serif;
          --font-body: 'BODY_FONT', sans-serif;
          --title-size: clamp(2rem, 6vw, 5rem);
          --body-size: clamp(0.9rem, 2vw, 1.25rem);
          --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
        }
    
        /* === PASTE viewport-base.css CONTENTS HERE === */
    
        /* === PRESENTATION-SPECIFIC STYLES === */
        /* Add custom styles per preset and slide content */
      </style>
    </head>
    <body>
    
      <!-- === PROGRESS BAR === -->
      <div class="progress-bar" id="progress"></div>
    
      <!-- === SLIDE 1: TITLE === -->
      <section class="slide" id="slide-1">
        <div class="slide-content" style="text-align: center;">
          <h1 class="slide-title reveal">Presentation Title</h1>
          <p class="slide-subtitle reveal">Subtitle or tagline goes here</p>
          <p class="slide-caption reveal">Speaker Name — Event — Date</p>
        </div>
      </section>
    
      <!-- === SLIDE 2: CONTENT === -->
      <section class="slide" id="slide-2">
        <div class="slide-content">
          <h2 class="slide-title reveal">Section Heading</h2>
          <ul class="slide-body">
            <li class="reveal">First key point with supporting detail</li>
            <li class="reveal">Second key point with evidence</li>
            <li class="reveal">Third key point with example</li>
            <li class="reveal">Fourth key point with takeaway</li>
          </ul>
        </div>
      </section>
    
      <!-- === SLIDE 3: TWO-COLUMN === -->
      <section class="slide" id="slide-3">
        <div class="slide-content">
          <h2 class="slide-title reveal">Comparison Heading</h2>
          <div class="split-layout">
            <div class="reveal-left">
              <h3>Left Column</h3>
              <p class="slide-body">Content for the left side with explanation or image.</p>
            </div>
            <div class="reveal">
              <h3>Right Column</h3>
              <p class="slide-body">Content for the right side with comparison.</p>
            </div>
          </div>
        </div>
      </section>
    
      <!-- === SLIDE 4: IMAGE FOCUS === -->
      <section class="slide" id="slide-4">
        <div class="slide-content" style="text-align: center;">
          <h2 class="slide-title reveal">Visual Showcase</h2>
          <img src="image.png" alt="Description" class="reveal-scale">
          <p class="slide-caption reveal">Image caption or source attribution</p>
        </div>
      </section>
    
      <!-- === SLIDE 5: CODE === -->
      <section class="slide" id="slide-5">
        <div class="slide-content">
          <h2 class="slide-title reveal">Code Example</h2>
          <pre class="code-block reveal"><code class="language-javascript">
    // Example code here
    function greet(name) {
      return `Hello, ${name}!`;
    }
          </code></pre>
        </div>
      </section>
    
      <!-- === SLIDE 6: QUOTE === -->
      <section class="slide" id="slide-6">
        <div class="slide-content" style="text-align: center; max-width: 800px;">
          <blockquote class="reveal" style="font-size: clamp(1.2rem, 3vw, 2rem); font-style: italic; line-height: 1.4; color: var(--text-primary);">
            "A meaningful quote that reinforces the key message of the presentation."
          </blockquote>
          <p class="slide-caption reveal" style="margin-top: 1rem;">— Attribution, Role</p>
        </div>
      </section>
    
      <!-- === SLIDE 7: FEATURE GRID === -->
      <section class="slide" id="slide-7">
        <div class="slide-content">
          <h2 class="slide-title reveal" style="text-align: center;">Features</h2>
          <div class="grid-3" style="margin-top: 2rem;">
            <div class="card reveal">
              <h3 style="color: var(--accent); margin-bottom: 0.5rem;">Feature 1</h3>
              <p class="slide-body">Brief description of this feature and its benefit.</p>
            </div>
            <div class="card reveal">
              <h3 style="color: var(--accent); margin-bottom: 0.5rem;">Feature 2</h3>
              <p class="slide-body">Brief description of this feature and its benefit.</p>
            </div>
            <div class="card reveal">
              <h3 style="color: var(--accent); margin-bottom: 0.5rem;">Feature 3</h3>
              <p class="slide-body">Brief description of this feature and its benefit.</p>
            </div>
          </div>
        </div>
      </section>
    
      <!-- === NAVIGATION DOTS === -->
      <nav class="nav" id="nav"></nav>
    
      <!-- === SCRIPTS === -->
      <!-- Optional: Prism.js -->
      <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-javascript.min.js"></script>
    
      <!-- Optional: Mermaid -->
      <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.0/mermaid.min.js"></script> -->
    
      <script>
        // === SLIDE NAVIGATION ===
        const slides = document.querySelectorAll('.slide');
        const nav = document.getElementById('nav');
        const progress = document.getElementById('progress');
        let currentSlide = 0;
    
        // Create nav dots
        slides.forEach((_, i) => {
          const dot = document.createElement('button');
          dot.className = 'nav-dot' + (i === 0 ? ' active' : '');
          dot.setAttribute('aria-label', `Go to slide ${i + 1}`);
          dot.onclick = () => goToSlide(i);
          nav.appendChild(dot);
        });
    
        function goToSlide(index) {
          if (index < 0 || index >= slides.length) return;
          currentSlide = index;
          slides[index].scrollIntoView({ behavior: 'smooth' });
          updateNav();
          triggerAnimations(index);
        }
    
        function updateNav() {
          document.querySelectorAll('.nav-dot').forEach((dot, i) => {
            dot.classList.toggle('active', i === currentSlide);
          });
          progress.style.width = ((currentSlide + 1) / slides.length * 100) + '%';
        }
    
        // === KEYBOARD NAVIGATION ===
        document.addEventListener('keydown', (e) => {
          if (e.key === 'ArrowRight' || e.key === 'ArrowDown' || e.key === ' ') {
            e.preventDefault();
            goToSlide(currentSlide + 1);
          } else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {
            e.preventDefault();
            goToSlide(currentSlide - 1);
          } else if (e.key === 'Home') {
            e.preventDefault();
            goToSlide(0);
          } else if (e.key === 'End') {
            e.preventDefault();
            goToSlide(slides.length - 1);
          }
        });
    
        // === TOUCH NAVIGATION ===
        let touchStartY = 0;
        document.addEventListener('touchstart', (e) => { touchStartY = e.touches[0].clientY; });
        document.addEventListener('touchend', (e) => {
          const diff = touchStartY - e.changedTouches[0].clientY;
          if (Math.abs(diff) > 50) {
            goToSlide(currentSlide + (diff > 0 ? 1 : -1));
          }
        });
    
        // === INTERSECTION OBSERVER FOR ANIMATIONS ===
        function triggerAnimations(slideIndex) {
          const slide = slides[slideIndex];
          slide.querySelectorAll('.reveal, .reveal-scale, .reveal-left, .reveal-blur').forEach((el, i) => {
            setTimeout(() => el.classList.add('visible'), i * 100);
          });
        }
    
        // Observer for scroll-based navigation
        const observer = new IntersectionObserver((entries) => {
          entries.forEach(entry => {
            if (entry.isIntersecting) {
              const index = Array.from(slides).indexOf(entry.target);
              currentSlide = index;
              updateNav();
              triggerAnimations(index);
            }
          });
        }, { threshold: 0.5 });
    
        slides.forEach(slide => observer.observe(slide));
    
        // Trigger first slide animations
        triggerAnimations(0);
    
        // Optional: Initialize Mermaid
        // mermaid.initialize({ startOnLoad: true, theme: 'dark' });
      </script>
    </body>
    </html>
    ```
    
    ## Slide Type Templates
    
    ### Title Slide
    ```html
    <section class="slide" style="text-align: center;">
      <div class="slide-content">
        <h1 class="slide-title reveal">Main Title</h1>
        <p class="slide-subtitle reveal">Subtitle or tagline</p>
        <p class="slide-caption reveal">Speaker — Event — Date</p>
      </div>
    </section>
    ```
    
    ### Section Divider
    ```html
    <section class="slide" style="background: var(--accent);">
      <div class="slide-content" style="text-align: center;">
        <h2 class="slide-title reveal" style="color: var(--bg-primary);">Section Title</h2>
      </div>
    </section>
    ```
    
    ### Timeline
    ```html
    <section class="slide">
      <div class="slide-content">
        <h2 class="slide-title reveal">Timeline</h2>
        <div style="display: flex; justify-content: space-between; margin-top: 2rem; position: relative;">
          <div style="position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: var(--accent);"></div>
          <div class="reveal" style="text-align: center; z-index: 1;">
            <div style="width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin: 0 auto 0.5rem;"></div>
            <strong>2023</strong>
            <p class="slide-caption">Milestone 1</p>
          </div>
          <!-- Repeat for each milestone -->
        </div>
      </div>
    </section>
    ```
    
    ### Metric Highlight
    ```html
    <section class="slide">
      <div class="slide-content" style="text-align: center;">
        <h2 class="slide-title reveal">Key Metrics</h2>
        <div class="grid-3" style="margin-top: 2rem;">
          <div class="reveal">
            <div style="font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; color: var(--accent);">300K+</div>
            <p class="slide-body">Users worldwide</p>
          </div>
          <!-- Repeat for each metric -->
        </div>
      </div>
    </section>
    ```
    
  • skills/html-slides/assets/viewport-base.css7.2 KB7892f879a47cupstream ↗
    /* ============================================
       VIEWPORT BASE CSS — Mandatory for all HTML presentations
       Include this in every generated presentation.
       ============================================ */
    
    /* Reset & base */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    html {
      font-size: 16px;
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    
    body {
      overflow-x: hidden;
      background: var(--bg-primary, #0a0a0a);
      color: var(--text-primary, #ffffff);
      font-family: var(--font-body, 'IBM Plex Sans', system-ui, sans-serif);
      line-height: 1.5;
    }
    
    /* ============================================
       SLIDE VIEWPORT ENFORCEMENT
       Every slide MUST fill exactly one viewport.
       No scrolling within slides. Ever.
       ============================================ */
    
    .slide {
      width: 100vw;
      height: 100vh;
      height: 100dvh; /* Dynamic viewport height for mobile */
      overflow: hidden;
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: clamp(1.5rem, 4vw, 4rem);
    }
    
    .slide-content {
      width: 100%;
      max-width: min(90vw, 1200px);
      max-height: 100%;
      overflow: hidden;
    }
    
    /* ============================================
       RESPONSIVE TYPOGRAPHY
       All sizes use clamp() for fluid scaling.
       ============================================ */
    
    .slide-title {
      font-family: var(--font-heading, 'Clash Display', sans-serif);
      font-size: var(--title-size, clamp(2rem, 6vw, 5rem));
      font-weight: 700;
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
    }
    
    .slide-subtitle {
      font-size: clamp(1rem, 2.5vw, 1.75rem);
      font-weight: 400;
      color: var(--text-secondary, #999999);
      line-height: 1.3;
      margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .slide-body {
      font-size: var(--body-size, clamp(0.9rem, 2vw, 1.25rem));
      line-height: 1.6;
      color: var(--text-primary, #ffffff);
    }
    
    .slide-caption {
      font-size: clamp(0.7rem, 1.2vw, 0.9rem);
      color: var(--text-secondary, #999999);
    }
    
    /* ============================================
       IMAGE CONSTRAINTS
       ============================================ */
    
    .slide img,
    .slide video {
      max-width: 100%;
      max-height: min(50vh, 400px);
      object-fit: contain;
      border-radius: 4px;
    }
    
    .slide img.hero-image {
      max-height: min(70vh, 600px);
    }
    
    .slide img.full-bleed {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      max-height: none;
      border-radius: 0;
    }
    
    /* ============================================
       GRID LAYOUTS
       ============================================ */
    
    .grid-2 {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: clamp(1rem, 2vw, 2rem);
      width: 100%;
    }
    
    .grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
      gap: clamp(1rem, 2vw, 2rem);
      width: 100%;
    }
    
    .split-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: clamp(1.5rem, 3vw, 3rem);
      width: 100%;
      align-items: center;
    }
    
    .split-layout.asymmetric {
      grid-template-columns: 3fr 2fr;
    }
    
    /* ============================================
       RESPONSIVE BREAKPOINTS
       Aggressively adapt to cramped viewports.
       ============================================ */
    
    /* Short viewport (landscape phones, small projectors) */
    @media (max-height: 700px) {
      .slide { padding: clamp(1rem, 2vw, 2rem); }
      .slide-title { font-size: clamp(1.5rem, 5vw, 3rem); }
    }
    
    @media (max-height: 600px) {
      .slide-subtitle { display: none; }
      .nav-dots { display: none; }
      .slide-hint { display: none; }
    }
    
    @media (max-height: 500px) {
      .slide { padding: 0.75rem; }
      .slide-title { font-size: clamp(1.2rem, 4vw, 2rem); }
      .slide-body { font-size: clamp(0.75rem, 1.5vw, 1rem); }
    }
    
    /* Narrow viewport (portrait phones) */
    @media (max-width: 600px) {
      .split-layout,
      .split-layout.asymmetric {
        grid-template-columns: 1fr;
      }
      .grid-2 { grid-template-columns: 1fr; }
      .nav-dots { display: none; }
    }
    
    /* ============================================
       ANIMATIONS BASE
       CSS-first animations with Intersection Observer.
       ============================================ */
    
    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
                  transform 0.6s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    }
    
    .reveal-scale {
      opacity: 0;
      transform: scale(0.95);
      transition: opacity 0.6s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
                  transform 0.6s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    }
    
    .reveal-left {
      opacity: 0;
      transform: translateX(-30px);
      transition: opacity 0.6s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
                  transform 0.6s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    }
    
    .reveal-blur {
      opacity: 0;
      filter: blur(10px);
      transition: opacity 0.8s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
                  filter 0.8s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
    }
    
    .reveal.visible,
    .reveal-scale.visible,
    .reveal-left.visible,
    .reveal-blur.visible {
      opacity: 1;
      transform: none;
      filter: none;
    }
    
    /* Staggered reveal delays */
    .reveal:nth-child(1) { transition-delay: 0s; }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
    
    /* ============================================
       REDUCED MOTION
       Respect user preferences.
       ============================================ */
    
    @media (prefers-reduced-motion: reduce) {
      .reveal,
      .reveal-scale,
      .reveal-left,
      .reveal-blur {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
      }
    }
    
    /* ============================================
       NAVIGATION
       ============================================ */
    
    .nav {
      position: fixed;
      bottom: 1rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 0.5rem;
      z-index: 100;
    }
    
    .nav-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--text-secondary, #666);
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 0;
    }
    
    .nav-dot.active {
      background: var(--accent, #4a9eff);
      transform: scale(1.3);
    }
    
    .progress-bar {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      background: var(--accent, #4a9eff);
      transition: width 0.3s ease;
      z-index: 100;
    }
    
    /* ============================================
       CODE BLOCKS
       ============================================ */
    
    .code-block {
      background: #1e1e2e;
      border-radius: 8px;
      padding: clamp(0.75rem, 1.5vw, 1.5rem);
      overflow-x: auto;
      font-family: 'JetBrains Mono', 'Fira Code', monospace;
      font-size: clamp(0.7rem, 1.3vw, 0.95rem);
      line-height: 1.5;
      max-height: min(40vh, 350px);
      overflow-y: auto;
    }
    
    /* ============================================
       PRINT / PDF EXPORT
       ============================================ */
    
    @media print {
      .slide {
        page-break-after: always;
        height: 100vh;
        overflow: hidden;
      }
      .nav, .progress-bar, .nav-dot { display: none; }
      .reveal, .reveal-scale, .reveal-left, .reveal-blur {
        opacity: 1;
        transform: none;
        filter: none;
      }
    }
    
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/proyecto26-slides-ai-plugin-skills-html-slides.md

// REPO STATS

47 stars
0 open issues
Last commit: 7mo ago