Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Reveal.js sample

Reveal.js sample

Avatar for Dmitry Pashkevich

Dmitry Pashkevich

April 13, 2014
Tweet

More Decks by Dmitry Pashkevich

Other Decks in Technology

Transcript

  1. 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.
  2. SLIDES Not a coder? No problem. There's a fully-featured visual

    editor for authoring these, try it out at . http://slid.es
  3. 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
  4. WORKS IN MOBILE SAFARI Try it out! You can swipe

    through the slides and pinch your way to the overview.
  5. 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 >
  6. TRANSITION STYLES You can select from different transitions, like: -

    - - - - - - Cube Page Concave Zoom Linear Fade None Default
  7. 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 > .
  8. 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.
  9. 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 ' ) ; } ) ;
  10. 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.
  11. 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 " >
  12. 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 " >
  13. 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.
  14. 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 " .
  15. 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.”
  16. 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
  17. FRAGMENTED VIEWS Hit the next arrow... ... to step through

    ... 1. a n y t y p e 2. of view 3. fragments
  18. 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
  19. EXPORT TO PDF Presentations can be , below is an

    example that's been uploaded to SlideShare. exported to PDF
  20. 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.