| 1 |
<!doctype html> |
| 2 |
|
| 3 |
<!-- |
| 4 |
This is a simple example / template impress.js slide show. The goal is to be |
| 5 |
easier to read for a first timer than the official and very feature rich |
| 6 |
demo by bartaz (http://bartaz.github.io/impress.js/). It's also a very |
| 7 |
traditional presentation that looks like slides (square screens with bullet |
| 8 |
points...), again to make a first timer feel more at home. From this simple |
| 9 |
presentation you can then go on to more powerful impress.js presentations! |
| 10 |
|
| 11 |
This example is hopefully helpful for people that want to create both |
| 12 |
simple and (eventually) awesome presentations in impress.js and comfortable |
| 13 |
doing that directly in HTML. |
| 14 |
|
| 15 |
By: @henrikingo (Still based on the HTML from bartaz' demo.) |
| 16 |
|
| 17 |
--> |
| 18 |
|
| 19 |
<html lang="en"> |
| 20 |
<head> |
| 21 |
<meta charset="utf-8" /> |
| 22 |
<title>A Study in 3D Rotations| by Henrik Ingo @henrikingo</title> |
| 23 |
<meta name="description" content="Explore impress.js in 3D" /> |
| 24 |
<meta name="author" content="Henrik Ingo" /> |
| 25 |
<link href="..\..\css\impress-common.css" rel="stylesheet" /> |
| 26 |
<link href="css/3D-rotations.css" rel="stylesheet" /> |
| 27 |
</head> |
| 28 |
|
| 29 |
<body class="impress-not-supported"> |
| 30 |
<div class="fallback-message"> |
| 31 |
<p>Your browser <b>doesn't support the features required</b> by impress.js, so you are presented with a simplified version of this presentation.</p> |
| 32 |
<p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser.</p> |
| 33 |
</div> |
| 34 |
|
| 35 |
<div id="impress" data-transition-duration="2000"> |
| 36 |
|
| 37 |
|
| 38 |
<div id="overview" class="step overview" data-x="1350" data-y="100" data-z="100" data-scale="3" data-rotate-y="90"> |
| 39 |
<h1>A Study in 3D Rotations</h1> |
| 40 |
</div> |
| 41 |
<div id="overview2" class="step overview" data-x="2018" data-y="106" data-z="3018" data-scale="2"> |
| 42 |
<p>Unlike the <code>x/y/z</code> coordinates (aka translations), the <code>rotate-x/y/z</code> rotations are applied in a |
| 43 |
specific order, and order matters. This demo presentation exhibits the use of the new <code>data-rotate- order</code> attribute. |
| 44 |
Instead of the default "xyz" order, the steps use the reversed <em>"zyx"</em> order in applying rotations around each axis. |
| 45 |
Some of the steps (<a href="#step-3">3</a> & <a href="#step-7">7</a>), are in positions that are not possible with the default "xyz" order.</p> |
| 46 |
</div> |
| 47 |
|
| 48 |
<div id="step-1" class="step" data-x="0" data-y="0" data-z="0" |
| 49 |
data-goto-prev="step-8"> |
| 50 |
<p>Slide one</p> |
| 51 |
</div> |
| 52 |
|
| 53 |
<div id="step-2" class="step" data-x="420" data-y="-70" data-z="-250" data-rotate-z="45" data-rotate-y="-45" data-rotate-order="zyx"> |
| 54 |
<p>Slide two</p> |
| 55 |
</div> |
| 56 |
|
| 57 |
<div id="step-3" class="step" data-x="700" data-y="350" data-z="-350" data-rotate-z="90" data-rotate-y="-90" data-rotate-order="zyx"> |
| 58 |
<p>Slide three</p> |
| 59 |
</div> |
| 60 |
|
| 61 |
<div id="step-4" class="step" data-x="422" data-y="780" data-z="-250" data-rotate-z="135" data-rotate-y="-135" data-rotate-order="zyx"> |
| 62 |
<p>Slide four</p> |
| 63 |
</div> |
| 64 |
|
| 65 |
<div id="step-5" class="step" data-x="0" data-y="702" data-z="0" data-rotate-z="180" data-rotate-y="-180" data-rotate-order="zyx"> |
| 66 |
<p>Slide five</p> |
| 67 |
</div> |
| 68 |
|
| 69 |
<div id="step-6" class="step" data-x="379" data-y="780" data-z="270" data-rotate-z="135" data-rotate-y="-225" data-rotate-order="zyx"> |
| 70 |
<p>Slide six</p> |
| 71 |
</div> |
| 72 |
|
| 73 |
<div id="step-7" class="step" data-x="700" data-y="350" data-z="350" data-rotate-z="90" data-rotate-y="-270" data-rotate-order="zyx"> |
| 74 |
<p>Slide seven</p> |
| 75 |
</div> |
| 76 |
|
| 77 |
<div id="step-8" class="step" data-x="379" data-y="-70" data-z="270" data-rotate-z="45" data-rotate-y="-315" data-rotate-order="zyx" |
| 78 |
data-goto-next="step-1"> |
| 79 |
<p>Slide eight</p> |
| 80 |
</div> |
| 81 |
</div> |
| 82 |
|
| 83 |
<div id="impress-toolbar"></div> |
| 84 |
<div id="impress-help"></div> |
| 85 |
|
| 86 |
<script type="text/javascript" src="../../js/impress.js"></script> |
| 87 |
<script>impress().init();</script> |
| 88 |
|
| 89 |
</body> |
| 90 |
</html> |