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

Revealjs sample

Embed Size (px)

Citation preview

Page 1: Revealjs sample

REVEAL.JSHTML PRESENTATIONS MADE EASY

Created by / Hakim El Hattab @hakimel

Page 2: Revealjs sample

HEADS UPreveal.js is a framework for easily creating beautiful

presentations using HTML. You'll need a browser with supportfor CSS 3D transforms to see it in its full glory.

Page 3: Revealjs sample

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

Page 4: Revealjs sample

BASEMENT LEVEL 1Press down or up to navigate.

Page 5: Revealjs sample

BASEMENT LEVEL 2Cornify

Page 6: Revealjs sample

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

Page 7: Revealjs sample

SLIDESNot a coder? No problem. There's a fully-featured visual editor

for authoring these, try it out at .http://slid.es

Page 8: Revealjs sample

POINT OF VIEWPress 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

Page 9: Revealjs sample

WORKS IN MOBILE SAFARITry it out! You can swipe through the slides and pinch your way

to the overview.

Page 10: Revealjs sample

MARVELOUS UNORDERED LISTNo order hereOr hereOr hereOr here

Page 11: Revealjs sample

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

Page 12: Revealjs sample

MARKDOWN SUPPORTFor those of you who like that sort of thing. Instructions and a bit

more info available .here<section data-markdown> ## Markdown support

For those of you who like that sort of thing. Instructions and a bit more info available [here](https://github.com/hakimel/reveal.js#markdown).</section>

Page 14: Revealjs sample

THEMESReveal.js comes with a few themes built in:

- - - - - -

Default Sky Beige Simple Serif NightMoon Solarized

* Theme demos are loaded after the presentation which leads to flicker. In production you should load yourtheme in the <head> using a <link>.

Page 15: Revealjs sample

GLOBAL STATESet data-state="something" on a slide and "something"will be added as a class to the document element when the slideis open. This lets you apply broader style changes, like switching

the background.

Page 16: Revealjs sample

CUSTOM EVENTSAdditionally custom events can be triggered on a per slide basis

by binding to the data-state name.

Reveal.addEventListener( 'customevent', function() { console.log( '"customevent" has fired' );} );

Page 17: Revealjs sample

SLIDE BACKGROUNDSSet data-background="#007777" on a slide to change the

full page background to the given color. All CSS color formats aresupported.

Page 18: Revealjs sample

IMAGE BACKGROUNDS<section data-background="image.png">

Page 19: Revealjs sample

REPEATED IMAGE BACKGROUNDS<section data-background="image.png" data-background-repeat="repeat" data-background-size="100px">

Page 20: Revealjs sample

BACKGROUND TRANSITIONSPass reveal.js the backgroundTransition: 'slide'

config argument to make backgrounds slide rather than fade.

Page 21: Revealjs sample

BACKGROUND TRANSITION OVERRIDEYou can override background transitions per slide by usingdata-background-transition="slide".

Page 22: Revealjs sample

CLEVER QUOTESThese guys come in two forms, inline: “The nice thing aboutstandards is that there are so many to choose from” and block:

“For years there has been a theory that millionsof monkeys typing at random on millions of

typewriters would reproduce the entire works ofShakespeare. The Internet has proven this

theory to be untrue.”

Page 23: Revealjs sample

PRETTY CODEfunction linkify( selector ) { if( supports3DTransforms ) {

var nodes = document.querySelectorAll( selector );

for( var i = 0, len = nodes.length; i < len; i++ ) { var node = nodes[i];

if( !node.className ) { node.className += ' roll'; } } }}

Courtesy of .highlight.js

Page 24: Revealjs sample

INTERGALACTIC INTERCONNECTIONSYou can link between slides internally, .like this

Page 25: Revealjs sample

FRAGMENTED VIEWSHit the next arrow...

... to step through ...

1. any type2. of view3. fragments

Page 26: Revealjs sample

FRAGMENT STYLESThere's a few styles of fragments, like:

grow

shrink

roll-in

fade-out

highlight-red

highlight-green

highlight-blue

current-visible

highlight-current-blue

Page 27: Revealjs sample

SPECTACULAR IMAGE!

Page 28: Revealjs sample

EXPORT TO PDFPresentations can be , below is an example

that's been uploaded to SlideShare.exported to PDF

Page 29: Revealjs sample

TAKE A MOMENTPress 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.

Page 30: Revealjs sample

STELLAR LINKSTry the online editorSource code on GitHubFollow me on Twitter

Page 31: Revealjs sample

THE ENDBY HAKIM EL HATTAB / HAKIM.SE