Slide 1

Slide 1 text

REVEAL.JS HTML PRESENTATIONS MADE EASY Created by / Hakim El Hattab @hakimel

Slide 2

Slide 2 text

HEADS UP reveal.js is a framework for easily creating beautiful presentations using HTML. You'll need a browser with support for CSS 3D transforms to see it in its full glory.

Slide 3

Slide 3 text

VERTICAL SLIDES Slides can be nested inside of other slides, try pressing . down

Slide 4

Slide 4 text

BASEMENT LEVEL 1 Press down or up to navigate.

Slide 5

Slide 5 text

BASEMENT LEVEL 2 Cornify

Slide 6

Slide 6 text

BASEMENT LEVEL 3 That's it, time to go back up.

Slide 7

Slide 7 text

SLIDES Not a coder? No problem. There's a fully-featured visual editor for authoring these, try it out at . http://slid.es

Slide 8

Slide 8 text

POINT OF VIEW Press ESC to enter the slide overview. Hold down alt and click on any element to zoom in on it using . Alt + click anywhere to zoom back out. zoom.js

Slide 9

Slide 9 text

WORKS IN MOBILE SAFARI Try it out! You can swipe through the slides and pinch your way to the overview.

Slide 10

Slide 10 text

MARVELOUS UNORDERED LIST No order here Or here Or here Or here

Slide 11

Slide 11 text

FANTASTIC ORDERED LIST 1. One is smaller than... 2. Two is smaller than... 3. Three!

Slide 12

Slide 12 text

MARKDOWN SUPPORT For those of you who like that sort of thing. Instructions and a bit more info available . here < s e c t i o n d a t a - m a r k d o w n > # # M a r k d o w n s u p p o r t F o r t h o s e o f y o u w h o l i k e t h a t s o r t o f t h i n g . I n s t r u c t i o n s a n d a b i t m o r e i n f o a v a i l a b l e [ h e r e ] ( h t t p s : / / g i t h u b . c o m / h a k i m e l / r e v e a l . j s # < / s e c t i o n >

Slide 13

Slide 13 text

TRANSITION STYLES You can select from different transitions, like: - - - - - - - Cube Page Concave Zoom Linear Fade None Default

Slide 14

Slide 14 text

THEMES Reveal.js comes with a few themes built in: - - - - - - Default Sky Beige Simple Serif Night Moon Solarized * Theme demos are loaded after the presentation which leads to flicker. In production you should load your theme in the < h e a d > using a < l i n k > .

Slide 15

Slide 15 text

GLOBAL STATE Set d a t a - s t a t e = " s o m e t h i n g " on a slide and " s o m e t h i n g " will be added as a class to the document element when the slide is open. This lets you apply broader style changes, like switching the background.

Slide 16

Slide 16 text

CUSTOM EVENTS Additionally custom events can be triggered on a per slide basis by binding to the d a t a - s t a t e name. R e v e a l . a d d E v e n t L i s t e n e r ( ' c u s t o m e v e n t ' , f u n c t i o n ( ) { c o n s o l e . l o g ( ' " c u s t o m e v e n t " h a s f i r e d ' ) ; } ) ;

Slide 17

Slide 17 text

SLIDE BACKGROUNDS Set d a t a - b a c k g r o u n d = " # 0 0 7 7 7 7 " on a slide to change the full page background to the given color. All CSS color formats are supported.

Slide 18

Slide 18 text

IMAGE BACKGROUNDS < s e c t i o n d a t a - b a c k g r o u n d = " i m a g e . p n g " >

Slide 19

Slide 19 text

REPEATED IMAGE BACKGROUNDS < s e c t i o n d a t a - b a c k g r o u n d = " i m a g e . p n g " d a t a - b a c k g r o u n d - r e p e a t = " r e p e a t " d a t a - b a c k g r o u n d - s i z e = " 1 0 0 p x " >

Slide 20

Slide 20 text

BACKGROUND TRANSITIONS Pass reveal.js the b a c k g r o u n d T r a n s i t i o n : ' s l i d e ' config argument to make backgrounds slide rather than fade.

Slide 21

Slide 21 text

BACKGROUND TRANSITION OVERRIDE You can override background transitions per slide by using d a t a - b a c k g r o u n d - t r a n s i t i o n = " s l i d e " .

Slide 22

Slide 22 text

CLEVER QUOTES These guys come in two forms, inline: “The nice thing about standards is that there are so many to choose from” and block: “For years there has been a theory that millions of monkeys typing at random on millions of typewriters would reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.”

Slide 23

Slide 23 text

PRETTY CODE f u n c t i o n l i n k i f y ( s e l e c t o r ) { i f ( s u p p o r t s 3 D T r a n s f o r m s ) { v a r n o d e s = d o c u m e n t . q u e r y S e l e c t o r A l l ( s e l e c t o r ) ; f o r ( v a r i = 0 , l e n = n o d e s . l e n g t h ; i < l e n ; i + + ) { v a r n o d e = n o d e s [ i ] ; i f ( ! n o d e . c l a s s N a m e ) { n o d e . c l a s s N a m e + = ' r o l l ' ; } } } } Courtesy of . highlight.js

Slide 24

Slide 24 text

INTERGALACTIC INTERCONNECTIONS You can link between slides internally, . like this

Slide 25

Slide 25 text

FRAGMENTED VIEWS Hit the next arrow... ... to step through ... 1. a n y t y p e 2. of view 3. fragments

Slide 26

Slide 26 text

FRAGMENT STYLES There's a few styles of fragments, like: grow shrink roll-in fade-out highlight-red highlight-green highlight-blue current-visible highlight-current-blue

Slide 27

Slide 27 text

SPECTACULAR IMAGE!

Slide 28

Slide 28 text

EXPORT TO PDF Presentations can be , below is an example that's been uploaded to SlideShare. exported to PDF

Slide 29

Slide 29 text

TAKE A MOMENT Press b or period on your keyboard to enter the 'paused' mode. This mode is helpful when you want to take distracting slides off the screen during a presentation.

Slide 30

Slide 30 text

STELLAR LINKS Try the online editor Source code on GitHub Follow me on Twitter

Slide 31

Slide 31 text

THE END BY HAKIM EL HATTAB / HAKIM.SE