Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Building Impressive Presentations with impress.js

You're reading from  Building Impressive Presentations with impress.js

Product type Book
Published in Mar 2013
Publisher Packt
ISBN-13 9781849696487
Pages 124 pages
Edition 1st Edition
Languages
Concepts

Table of Contents (14) Chapters

Building Impressive Presentations with impress.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with Impressive Presentations 2. Exploring Impress Visualization Effects 3. Diving into the Core of impress.js 4. Presenting on Different Viewports 5. Creating Personal Websites 6. Troubleshooting Impress Tools and Resources Index

Scaling effects


Scaling in impress.js is much simpler compared to what we discussed in previous sections about positioning and rotations. There is only scaling up or scaling down and the x, y, and z axes will not have any effect on scaling. So let's get things moving by identifying the data attribute for scaling, which will be defined as data-scale.

Note

Scaling up and down can be considered as zoom-out and zoom-in effects. A default data-scale value of each step is equal to 1.

Consider the following code snippet, which defines three steps with data-scale values:

<div id="impress">
    <!-- Row 1 -->
    <div id="slide1" class="step slide" data-x="0" data-y="500" data-scale="1" >
       <div><h2>Step 1</h2></div>
    </div>
    <div id="slide2" class="step slide" data-x="0" data-y="300" data-scale="2" >
       <div><h2>Step 2</h2></div>
     </div>
     <div id="slide3" class="step slide" data-x="0" data-scale...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}