Getting Started with deck.js
How to Make a Deck
Slide content is simple HTML.
One for slide styles and one for deck transitions.
Add extra functionality to your deck, or leave it stripped down.
Slides are just HTML elements with a class of slide.
<h2>How to Make a Deck</h2>
<p>Slide content is simple HTML.</p>
<p>One for slide styles and one for deck transitions.</p>
Customizes the colors, typography, and layout of slide content.
<link rel="stylesheet" href="/path/to/css/style-theme.css">
Defines transitions between slides using CSS3 transitions. Less capable browsers fall back to cutaways. But you aren’t using those browsers to give your presentations, are you…
<link rel="stylesheet" href="/path/to/css/transition-theme.css">
Core gives you basic slide functionality with left and right arrow navigation, but you may want more. Here are the ones included in this deck:
- deck.goto: Adds a shortcut key to jump to any slide number. Hit g, type in the slide number, and hit enter.
- deck.hash: Enables internal linking within slides, deep linking to individual slides, and updates the address bar & a permalink anchor with each slide change.
- deck.menu: Adds a menu view, letting you see all slides in a grid. Hit m to toggle to menu view, continue navigating your deck, and hit m to return to normal view. Touch devices can double-tap the deck to switch between views.
- deck.navigation: Adds clickable left and right buttons for the less keyboard inclined.
- deck.status: Adds a page number indicator. (current/total)