Share
Embed
Transcript
31 slides
-
REVEAL.JS HTML PRESENTATIONS MADE EASY Created by / Hakim El
Hattab @hakimel -
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. -
VERTICAL SLIDES Slides can be nested inside of other slides,
try pressing . down -
SLIDES Not a coder? No problem. There's a fully-featured visual
editor for authoring these, try it out at . http://slid.es -
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 -
WORKS IN MOBILE SAFARI Try it out! You can swipe
through the slides and pinch your way to the overview. -
FANTASTIC ORDERED LIST 1. One is smaller than... 2. Two
is smaller than... 3. Three! -
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 > -
TRANSITION STYLES You can select from different transitions, like: -
- - - - - - Cube Page Concave Zoom Linear Fade None Default -
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 > . -
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. -
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 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. -
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 " > -
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 " > -
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. -
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 " . -
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.” -
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 -
FRAGMENTED VIEWS Hit the next arrow... ... to step through
... 1. a n y t y p e 2. of view 3. fragments -
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 -
EXPORT TO PDF Presentations can be , below is an
example that's been uploaded to SlideShare. exported to PDF -
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. -
STELLAR LINKS Try the online editor Source code on GitHub
Follow me on Twitter