Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
deck.js is a JavaScript library for creating modern HTML presentations with slides, themes, extensions, and print styles.
Deck.js is an open-source JavaScript library — a tool rather than a conventional website template — for building modern HTML presentations that run entirely in the browser. It provides a boilerplate HTML file, core slide-navigation code, theming, and extensions, and it is maintained by Caleb Troughton and contributors under the MIT license.
Deck.js is a JavaScript library that turns a simple HTML document into an interactive slide deck. Its input is a set of HTML elements marked as slides in a boilerplate page; its output is a full-screen, keyboard-navigable presentation in any modern browser. The library depends on jQuery and Modernizr (both bundled in the repository), and it ships with a sample deck in the introduction folder. It was created by Caleb Troughton and first published in 2011.
Deck.js provides a boilerplate, core navigation, theming, extensions, and print styles, all built on jQuery and Modernizr. The following features are described in the project's README:
boilerplate.html with all extensions wired in, so you can download the archive, open the file, and start editing slide content in plain HTML.introduction folder contains a standard slide deck demonstrating the available style and transition themes; it can also be viewed online.Deck.js targets both HTML novices who need a ready-made slideshow and advanced CSS/JavaScript authors who want to build custom presentations. The typical roles are:
With deck.js you can build browser-based presentations, customize their look, and generate printable handouts. Practical use cases include:
To get started, download the latest archive, open boilerplate.html, and edit the HTML inside the slide sections. When you open the file in a browser, deck.js's core script initializes the deck and handles keyboard navigation, resizing, and extension hooks. The documentation page provides further detail on the methods, events, and options available in core and the extensions.
Deck.js is free and open-source software released under the MIT license, so you can use, modify, and redistribute it without licensing fees. The project also accepts optional weekly donations via Gittip to support development.
Reveal.js
Yes, deck.js is licensed under the MIT license, which permits free use, modification, and distribution, including in commercial projects.
Deck.js works in IE7 and later, Chrome, Firefox, Safari, and Opera, according to the project's testing. More capable browsers receive greater enhancements, while a basic cutaway slideshow works in all listed browsers. The maintainers advise not to give presentations in IE6.
Deck.js depends on jQuery and Modernizr. Both dependencies are included in the repository, so you don't need to install anything separately when using the provided boilerplate.
Yes, core includes stripped-down black-and-white print styles for the standard slide template, which are suitable for handouts.
Download the latest archive from GitHub, open boilerplate.html, and edit the slide content. A sample deck in the introduction folder and the online documentation also provide guidance.
