# Howto reveal.js ## Pour faire des slides verticaux, il suffit d'englober plusieurs sections dans une même section : ~~~{.html}

Vertical Slides

Slides can be nested inside of each other.

Basement Level 1

Nested slides are useful for adding additional detail underneath a high level horizontal slide.

~~~ ## Pour intégrer image/gif en background sur un slide en particulier, il faut ajouter l'attribut data-background à la section : ~~~{.html}

A slide with a image

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

~~~ Idem pour un background color : ~~~{.html}

A slide with a different background-color

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

~~~ ## Pour intégrer une video en background sur un slide en particulier, l'attribut a ajouter est data-background-video : ~~~{.html}

A slide with a video

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

~~~ ## Pour afficher du texte ou des images de façon fragmentée grâce à la class "fragment" : ~~~{.html}

A slide with a image

Lorem ipsum dolor sit amet...

...consectetur adipiscing elit...

...sed do eiusmod tempor incididunt ut...

...labore et dolore magna aliqua.

~~~ ## Transformer une présentation en .pdf : ~~~ $ ~/GIT/$ git clone https://github.com/astefanutti/decktape.git $ ~/GIT/decktape$ curl -L https://github.com/astefanutti/decktape/releases/download/v1.0.0/phantomjs-linux-x86-64 -o phantomjs; chmod +x phantomjs $ ~/GIT/decktape$ ./phantomjs decktape.js file:///tmp/foo.html foo.pdf ~~~ Note : cette méthode ne marche plus avec les dernières version de phantomjs et/ou decktape. ### Alternative en utilisant Docker Si vous avez Docker sur votre machine : ~~~ $ docker run -t -v ~:/home/user astefanutti/decktape slides.pdf $ docker cp `docker ps -lq`:slides/slides.pdf . $ docker rm `docker ps -lq` ~~~ ### Alternative en utilisant NodeJS Débrouillez vous pour obtenir un nodejs et npm suffisamment récent puis suivre la procédure officielle : https://github.com/astefanutti/decktape#install (non testé).