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/highlight/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 Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you run the speaker notes server.
57 <!-- Example of nested vertical slides -->
60 <h2>Vertical Slides</h2>
62 Slides can be nested inside of other slides,<br/>
63 try pressing <a href="#/2/1">down</a>.
65 <a href="#/2/1" class="image">
66 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
70 <h2>Basement Level 1</h2>
71 <p>Press down or up to navigate.</p>
74 <h2>Basement Level 2</h2>
76 <a class="test" href="http://cornify.com">
77 <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif">
81 <h2>Basement Level 3</h2>
82 <p>That's it, time to go back up.</p>
83 <a href="#/2" class="image">
84 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
90 <h2>Holistic Overview</h2>
92 Press <strong>ESC</strong> to enter the slide overview!
97 <h2>Works in Mobile Safari</h2>
99 Try it out! You can swipe through the slides pinch your way to the overview.
104 <h2>Transition Styles</h2>
106 You can select from different transitions, like:
109 <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
110 <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
111 <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
112 <li><a href="http://lab.hakim.se/reveal-js/?transition=linear">Linear</a></li>
117 <h2>Marvelous Unordered List</h2>
119 <li>No order here</li>
127 <h2>Fantastic Ordered List</h2>
129 <li>One is smaller than...</li>
130 <li>Two is smaller than...</li>
136 <section data-state="alert">
137 <h2>Global State</h2>
139 Set <code>data-state="something"</code> on a slide and <code>"something"</code>
140 will be added as a class to the document element when the slide is open. This let's you
141 apply broader style changes, like switching the background.
143 <a href="#/7/1" class="image">
144 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
147 <section data-state="blackout">
149 <a href="#/7/2" class="image">
150 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
153 <section data-state="soothe">
155 <a href="#/7/0" class="image">
156 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
161 <section data-state="customevent">
162 <h2>Custom Events</h2>
164 Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
166 <pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
167 alert( '"customevent" has fired' );
173 <h2>Clever Quotes</h2>
175 These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
176 The nice thing about standards is that there are so many to choose from</q> and block:
178 <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
179 For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
180 reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
186 <pre><code contenteditable>
187 var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
188 document.body.style['MozPerspective'] !== undefined ||
189 document.body.style['perspective'] !== undefined;
191 function linkify( selector ) {
192 if( supports3DTransforms ) {
194 var nodes = document.querySelectorAll( selector );
196 for( var i = 0, len = nodes.length; i < len; i++ ) {
199 if( !node.className || !node.className.match( /roll/g ) ) {
200 node.className += ' roll';
201 node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
209 <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
213 <h2>Intergalactic Interconnections</h2>
215 You can link between slides internally,<br/>
216 <a href="#/2/3">like this</a>.
221 <h2>Fragmented Views</h2>
222 <p>Hit the next arrow...</p>
223 <p class="fragment">... to step through ...</p>
225 <li class="fragment"><code>any type</code></li>
226 <li class="fragment"><em>of view</em></li>
227 <li class="fragment"><strong>fragments</strong></li>
232 <h2>Spectacular image!</h2>
233 <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
234 <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
239 <h2>Stellar Links</h2>
241 <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
242 <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
243 <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
249 <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
253 <!-- The navigational controls UI -->
254 <aside class="controls">
255 <a class="left" href="#">◄</a>
256 <a class="right" href="#">►</a>
257 <a class="up" href="#">▲</a>
258 <a class="down" href="#">▼</a>
261 <!-- Displays presentation progress, max value changes via JS to reflect # of slides -->
262 <div class="progress"><span></span></div>
266 <!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
267 <script src="lib/highlight/highlight.js"></script>
268 <script src="lib/polyfills/classList.js"></script>
270 <script src="js/reveal.js"></script>
273 // Parse the query string into a key/value object
276 location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
277 query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
280 // Fires when a slide with data-state=customevent is activated
281 Reveal.addEventListener( 'customevent', function() {
282 alert( '"customevent" has fired' );
285 // Fires each time a new slide is activated
286 Reveal.addEventListener( 'slidechanged', function( event ) {
287 // event.previousSlide, event.currentSlide, event.indexh, event.indexv
291 // Display controls in the bottom right corner
294 // Display a presentation progress bar
297 // If true; each slide will be pushed to the browser history
300 // Loops the presentation, defaults to false
303 // Flags if mouse wheel navigation should be enabled
306 // Apply a 3D roll to links on hover
310 theme: query.theme || 'default', // default/neon
313 transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
316 hljs.initHighlightingOnLoad();
319 <!-- the next two lines enable the speaker notes server -->
320 <!-- <script src="socket.io/socket.io.js"></script>
321 <script src="js/reveal.slidenotes.js"></script> -->