Book Image

Building Impressive Presentations with impress.js

Book Image

Building Impressive Presentations with impress.js

Overview of this book

Everyone has had to present during their lifetime. We've all spent agonizing hours trying to make those PowerPoint presentations engaging. Well now there is a tool that will make those presentations look like child's play. Impress.js is a powerful library that eases the task of creating presentations with smooth animations without depending on a software tool. You are no longer limited to desktop tools as these presentations run on any supported browser anywhere on the Internet. "Building Impressive Presentations with impress.js" is a quick guide to creating professional presentations using the best aspects of CSS3. It will also guide you through several practical examples which go beyond the conventional slide-based presentations, covering each aspect of the Impress library. From simple presentations to your own personal website this handy practical guide will ensure you get the most out of Impress.JS as quickly as you can. Starting with a simple slide-based presentation we move quickly on adding in sliders, galleries and portfolios to utilize this amazing tool. 3D transitions, rotations, scaling, and transforms are also covered to give your presentations that something extra. The final step is bringing all this together to create a personal website that is viewable on all impress supported browsers. "Building Impressive Presentations with impress.js" gives you the chance to stand out from the competition and engage with audiences in a way you never have before.
Table of Contents (14 chapters)
Building Impressive Presentations with impress.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating the navigation hint


Since we are creating a website using impress.js, users have the ability to use keyboard navigations to traverse through various pages. But the users don't know that this website is built upon impress.js. This means we have to provide a hint indicating to users to use keyboard controls. A hint is created as a separate component from the presentation as shown in the following code:

<div class="hint">
    <p>Use a spacebar or arrow keys to navigate</p>
</div>

This container should be placed after the wrapper container. Now, we don't need to show the hint in every step, so we are going to limit the hint to the home page. Initially the hint will be kept hidden with opacity of 0. When the impress presentation is initialized, we set display to block using the following CSS code:

.impress-enabled .hint {
    display: block;
}

Since opacity is set to 0, it is not displayed yet to the user. So, let's enable the hint on the home page using the following...