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 <link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
14 <link rel="stylesheet" href="css/reset.css">
15 <link rel="stylesheet" href="css/main.css">
17 <link rel="stylesheet" href="lib/zenburn.css">
24 <!-- Used to fade in a background when a specific slide state is reached -->
25 <div class="state-background"></div>
27 <!-- Any section element inside of this container is displayed as a slide -->
31 <h3 class="inverted">A CSS 3D Slideshow</h3>
33 // Delicously hacky. Look away.
34 if( navigator.userAgent.match( /(iPhone|iPad|iPod|Android)/i ) )
35 document.write( '<p style="color: rgba(0,0,0,0.3); text-shadow: none;">('+'Tap to navigate'+')</p>' );
42 reveal.js is an easy to use, HTML based, presentation tool. You'll need a modern browser with
43 support for CSS 3D transforms to see it in its full glory.
46 <i><small>- <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small></i>
50 <!-- Example of nested vertical slides -->
53 <h2>Vertical Slides</h2>
55 Slides can be nested inside of other slides,<br/>
56 try pressing <a href="#/2/1">down</a>.
58 <a href="#/2/1" class="image">
59 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
63 <h2>Basement Level 1</h2>
64 <p>Press down or up to navigate.</p>
67 <h2>Basement Level 2</h2>
69 <a class="test" href="http://cornify.com">
70 <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif">
74 <h2>Basement Level 3</h2>
75 <p>That's it, time to go back up.</p>
76 <a href="#/2" class="image">
77 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
83 <h2>Holistic Overview</h2>
85 Press <strong>ESC</strong> to enter the slide overview!
90 <h2>Transition Styles</h2>
92 You can select from different transitions, like:
95 <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
96 <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
97 <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
102 <h2>Marvelous Unordered List</h2>
104 <li>No order here</li>
112 <h2>Fantastic Ordered List</h2>
114 <li>One is smaller than...</li>
115 <li>Two is smaller than...</li>
121 <section data-state="alert">
122 <h2>Global State</h2>
124 Set <code>data-state="something"</code> on a slide and <code>"something"</code>
125 will be added as a class to the document element when the slide is open. This let's you
126 apply broader style changes, like switching the background.
128 <a href="#/7/1" class="image">
129 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
132 <section data-state="blackout">
134 <a href="#/7/2" class="image">
135 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
138 <section data-state="soothe">
140 <a href="#/7/0" class="image">
141 <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
147 <h2>Clever Quotes</h2>
149 These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
150 The nice thing about standards is that there are so many to choose from</q> and block:
152 <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
153 For years there has been a theory that millions of monkeys typing at random on millions of typewriters would
154 reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
160 <pre><code contenteditable>
161 var supports3DTransforms = document.body.style['webkitPerspective'] !== undefined ||
162 document.body.style['MozPerspective'] !== undefined ||
163 document.body.style['perspective'] !== undefined;
165 function linkify( selector ) {
166 if( supports3DTransforms ) {
168 var nodes = document.querySelectorAll( selector );
170 for( var i = 0, len = nodes.length; i < len; i++ ) {
173 if( !node.className || !node.className.match( /roll/g ) ) {
174 node.className += ' roll';
175 node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
183 <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
187 <h2>Intergalactic Interconnections</h2>
189 You can link between slides internally,<br/>
190 <a href="#/2/3">like this</a>.
195 <h2>Fragmented Views</h2>
196 <p>Hit the next arrow...</p>
197 <p class="fragment">... to step through ...</p>
199 <li class="fragment"><code>any type</code></li>
200 <li class="fragment"><em>of view</em></li>
201 <li class="fragment"><strong>fragments</strong></li>
206 <h2>Spectacular image!</h2>
207 <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
208 <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
213 <h2>Stellar Links</h2>
215 <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
216 <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
217 <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
223 <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
227 <!-- The navigational controls UI -->
228 <aside class="controls">
229 <a class="left" href="#">◄</a>
230 <a class="right" href="#">►</a>
231 <a class="up" href="#">▲</a>
232 <a class="down" href="#">▼</a>
235 <!-- Displays presentation progress, max value changes via JS to reflect # of slides -->
236 <div class="progress"><span></span></div>
240 <script src="js/reveal.js"></script>
242 <!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
243 <script src="lib/highlight.js"></script>
244 <script src="lib/classList.js"></script>
247 // Parse the query string into a key/value object
249 location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
250 query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
254 // Display controls in the bottom right corner
257 // Display a presentation progress bar
260 // If true; each slide will be pushed to the browser history
263 // Flags if mouse wheel navigation should be enabled
266 // Apply a 3D roll to links on hover
270 theme: query.theme || 'default', // default/neon
273 transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
276 hljs.initHighlightingOnLoad();