7 <title>reveal.js</title>
9 <meta name="description" content="An easy to use CSS 3D slideshow tool for quickly creating good looking HTML presentations.">
10 <meta name="author" content="Hakim El Hattab">
12 <meta name="apple-mobile-web-app-capable" content="yes" />
13 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
15 <link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
17 <link rel="stylesheet" href="css/reset.css">
18 <link rel="stylesheet" href="css/main.css">
19 <link rel="stylesheet" href="css/print.css" type="text/css" media="print">
21 <link rel="stylesheet" href="lib/zenburn.css">
28 <!-- Used to fade in a background when a specific slide state is reached -->
29 <div class="state-background"></div>
31 <!-- Any section element inside of this container is displayed as a slide -->
35 <h3 class="inverted">CSS 3D Presentations</h3>
37 // Delicously hacky. Look away.
38 if( navigator.userAgent.match( /(iPhone|iPad|iPod|Android)/i ) ) document.write( '<p style="color: rgba(0,0,0,0.3); text-shadow: none;">('+'Tap to navigate'+')</p>' );
45 reveal.js is an easy to use, HTML based, presentation tool. You'll need a modern browser with
46 support for CSS 3D transforms to see it in its full glory.
49 <i><small>- <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small></i>
53 <!-- Example of nested vertical slides -->
56 <h2>Vertical Slides</h2>
58 Slides can be nested inside of other slides,<br/>
59 try pressing <a href="#/2/1">down</a>.
61 <a href="#/2/1" class="image">
62 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
66 <h2>Basement Level 1</h2>
67 <p>Press down or up to navigate.</p>
70 <h2>Basement Level 2</h2>
72 <a class="test" href="http://cornify.com">
73 <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif">
77 <h2>Basement Level 3</h2>
78 <p>That's it, time to go back up.</p>
79 <a href="#/2" class="image">
80 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
86 <h2>Holistic Overview</h2>
88 Press <strong>ESC</strong> to enter the slide overview!
93 <h2>Transition Styles</h2>
95 You can select from different transitions, like:
98 <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
99 <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
100 <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
101 <li><a href="http://lab.hakim.se/reveal-js/?transition=linear">Linear</a></li>
106 <h2>Marvelous Unordered List</h2>
108 <li>No order here</li>
116 <h2>Fantastic Ordered List</h2>
118 <li>One is smaller than...</li>
119 <li>Two is smaller than...</li>
125 <section data-state="alert">
126 <h2>Global State</h2>
128 Set <code>data-state="something"</code> on a slide and <code>"something"</code>
129 will be added as a class to the document element when the slide is open. This let's you
130 apply broader style changes, like switching the background.
132 <a href="#/7/1" class="image">
133 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
136 <section data-state="blackout">
138 <a href="#/7/2" class="image">
139 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
142 <section data-state="soothe">
144 <a href="#/7/0" class="image">
145 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
150 <section data-state="customevent">
151 <h2>Custom Events</h2>
153 Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
155 <pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
156 alert( '"customevent" has fired' );
162 <h2>Clever Quotes</h2>
164 These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
165 The nice thing about standards is that there are so many to choose from</q> and block:
167 <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
168 For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
169 reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
175 <pre><code contenteditable>
176 var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
177 document.body.style['MozPerspective'] !== undefined ||
178 document.body.style['perspective'] !== undefined;
180 function linkify( selector ) {
181 if( supports3DTransforms ) {
183 var nodes = document.querySelectorAll( selector );
185 for( var i = 0, len = nodes.length; i < len; i++ ) {
188 if( !node.className || !node.className.match( /roll/g ) ) {
189 node.className += ' roll';
190 node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
198 <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
202 <h2>Intergalactic Interconnections</h2>
204 You can link between slides internally,<br/>
205 <a href="#/2/3">like this</a>.
210 <h2>Fragmented Views</h2>
211 <p>Hit the next arrow...</p>
212 <p class="fragment">... to step through ...</p>
214 <li class="fragment"><code>any type</code></li>
215 <li class="fragment"><em>of view</em></li>
216 <li class="fragment"><strong>fragments</strong></li>
221 <h2>Spectacular image!</h2>
222 <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
223 <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
228 <h2>Stellar Links</h2>
230 <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
231 <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
232 <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
238 <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
242 <!-- The navigational controls UI -->
243 <aside class="controls">
244 <a class="left" href="#">◄</a>
245 <a class="right" href="#">►</a>
246 <a class="up" href="#">▲</a>
247 <a class="down" href="#">▼</a>
250 <!-- Displays presentation progress, max value changes via JS to reflect # of slides -->
251 <div class="progress"><span></span></div>
255 <script src="js/reveal.js"></script>
257 <!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
258 <script src="lib/highlight.js"></script>
259 <script src="lib/classList.js"></script>
262 // Parse the query string into a key/value object
264 location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
265 query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
268 // Fires when a slide with data-state=customevent is activated
269 Reveal.addEventListener( 'customevent', function() {
270 alert( '"customevent" has fired' );
273 // Fires each time a new slide is activated
274 Reveal.addEventListener( 'slidechanged', function( event ) {
275 // event.indexh & event.indexv
279 // Display controls in the bottom right corner
282 // Display a presentation progress bar
285 // If true; each slide will be pushed to the browser history
288 // Loops the presentation, defaults to false
291 // Flags if mouse wheel navigation should be enabled
294 // Apply a 3D roll to links on hover
298 theme: query.theme || 'default', // default/neon
301 transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
304 hljs.initHighlightingOnLoad();