Html Slides logo

Html Slides

Organization
proyecto26
html-slides

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.

Overview

Publisherproyecto26
Repositoryslides-ai-plugin
Skill namehtml-slides
Stars
41
Forks
6
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by proyecto26 on GitHub. Read the source before you install it.

Installation

Install the Html Slides AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/proyecto26/slides-ai-plugin/tree/main/skills/html-slides
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/proyecto26/slides-ai-plugin.git /tmp/slides-ai-plugin
mkdir -p .claude/skills
cp -r /tmp/slides-ai-plugin/skills/html-slides .claude/skills/html-slides
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Html Slides in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Html Slides on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Html Slides is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 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

AnimationCSS ClassUse Case
Fade + slide up.revealDefault entrance for text/cards
Scale in.reveal-scaleImages, feature cards
Slide from left.reveal-leftTwo-column content
Blur in.reveal-blurBackground elements, overlays
Stagger:nth-child(n) delayLists, 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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Html Slides AI skill do?

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.

Why use Html Slides on TypingMind?

Because you install it once and use it with any model. Html Slides is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Html Slides in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/proyecto26/slides-ai-plugin/tree/main/skills/html-slides. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Html Slides?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Html Slides?

As many as you like. As long as a model supports skills, you can use Html Slides with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Html Slides AI skill free?

Yes. It is published on GitHub by proyecto26 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇