Professional Documents
Culture Documents
doctype html>
2
3 <!--
4
5 Welcome to the light side of the source, young padawan.
6
7 One step closer to learn something interesting you are...
8
9 ____
10 _.' : `._
11 .-.'`. ; .'`.-.
12 __ / : ___\ ; /___ ; \ __
13 ,'_ ""=-.:__;".-.";: :".-.":__;.-="" _`,
14 :' `.t""=-.. '<@.`;_ ',@:` ..-=""j.' `;
15 `:-.._J '-.-'L__ `-.-' L_..-;'
16 "-.__ ; .-" "-. : __.-"
17 L ' /.======.\ ' J
18 "-. "__" .-"
19 __.l"-:_JL_;-";.__
20 .-j/'.; ;"""" / .'\"-.
21 .' /:`. "-.: .-" .'; `.
22 .-" / ; "-. "-..-" .-" : "-.
23 .+"-. : : "-.__.-" ;-._ \
24 ; \ `.; ; : : "+. ;
25 : ; ;; : ; : \:
26 ; : ;: ;: ; :
27 :\ ; : ; : ; / ::
28 ; ;: ;: ; : ;:
29 : : ; : ; :: ; :;
30 ;\ : ; : ;; ;;
31 : `."-; : ; : ; / ;
32 ; -: ; : ; : .-" :
33 :\ \ : ; : \.-" :
34 ;`. \ ; : ;.'_..-= / ;
35 : "-. "-: ; :/." .' :
36 \ \: ;/ __ :
37 \ .-`.\ /t-"" ":-+. :
38 `. .-" `l __/ /`. : ; ; \ ;
39 \ .-" .-"-.-" .' .'j \ / ;/
40 \ / .-" /. .'.' ;_:' ;
41 :-""-.`./-.' / `.___.'
42 \ `t ._ /
43 "-.t-._:'
44
45 -->
46
47 <!--
48
49 So you'd like to know how to use impress.js?
50
51 You've made the rst, very impo ant step - you're reading the source code.
52 And that's how impress.js presentations are built - with HTML and CSS code.
53
54 Believe me, you need quite decent HTML and CSS skills to be able to use impress.js e ectively.
55 More impo antly, you need to be a designer. There are no default styles or layouts for impress.js presentations.
56
57 You need to design and build it by hand.
58
59 So...
60
61 Would you still like to know how to use impress.js?
62
63
-->
64
65 <html lang="en">
66 <head>
67 <meta charset="u -8" />
68 <meta name="viewpo " content="width=1024" />
69 <meta name="apple-mobile-web-app-capable" content="yes" />
70 <title>impress.js | presentation tool based on the power of CSS3 transforms and transitions in modern browsers | by Ba ek Szopka
@ba az</title>
71
72 <meta name="description" content="impress.js is a presentation tool based on the power of CSS3 transforms and transitions in
modern browsers and inspired by the idea behind prezi.com." />
73 <meta name="author" content="Ba ek Szopka" />
74
75 <link href="//fonts.googleapis.com/css?
family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic"
rel="stylesheet" />
76
77 <!--
78
79 Impress.js doesn't depend on any external stylesheets. It adds all of the styles it needs for the
80 presentation to work.
81
82 This style below contains styles only for demo presentation. Browse it to see how impress.js
83 classes are used to style presentation steps, or how to apply fallback styles, but I don't want
84 you to use them directly in your presentation.
85
86 Be creative, build your own. We don't really want all impress.js presentations to look the same,
87 do we?
88
89 When creating your own presentation get rid of this le. Sta from scratch, it's fun!
90
91 -->
92 <link href="css/impress-demo.css" rel="stylesheet" />
93 <link href="css/impress-common.css" rel="stylesheet" />
94
95 <link rel="sho cut icon" href="favicon.png" />
96 <link rel="apple-touch-icon" href="apple-touch-icon.png" />
97 </head>
98
99 <!--
100
101 Body element is used by impress.js to set some useful class names, that will allow you to detect
102 the suppo and state of the presentation in CSS or other scripts.
103
104 First very useful class name is `impress-not-suppo ed`. This class means, that browser doesn't
105 suppo features required by impress.js, so you should apply some fallback styles in your CSS.
106 It's not necessary to add it manually on this element. If the script detects that browser is not
107 good enough it will add this class, but keeping it in HTML means that users without JavaScript
108 will also get fallback styles.
109
110 When impress.js script detects that browser suppo s all required features, this class name will
111 be removed.
112
113 The class name on body element also depends on currently active presentation step. More details about
114 it can be found later, when `hint` element is being described.
115
116 -->
117 <body class="impress-not-suppo ed">
118
119 <!--
120 For example this fallback message is only visible when there is `impress-not-suppo ed` class on body.
121
-->
122 <div class="fallback-message">
123 <p>Your browser <b>doesn't suppo the features required</b> by impress.js, so you are presented with a simpli ed version of this
presentation.</p>
124 <p>For the best experience please use the latest <b>Chrome</b>, <b>Safari</b> or <b>Firefox</b> browser.</p>
125 </div>
126
127 <!--
128
129 Now that's the core element used by impress.js.
130
131 That's the wrapper for your presentation steps. In this element all the impress.js magic happens.
132 It doesn't have to be a `<div>`. Only `id` is impo ant here as that's how the script nd it.
133
134 O en you don't need to use any a ributes here, but for educational purposes I have used all of them below.
135
136 To change the duration of the transition between slides use `data-transition-duration="2000"` giving it
137 a number of ms. It defaults to 1000 (1s).
138
139 When authoring impress.js presentations, you should target some screen size, which you can de ne here.
140 The default is 1024 x 768. You should write your CSS as if this is the screen size used for the
141 presentation. When you present your presentation on a screen (or browser window) of di erent size,
142 impress.js will automatically scale the presentation to t the screen. The minimum and maximum limits
143 to this scaling can also be de ned here.
144
145 NOTE: I intend to change the defaults to target HD screens in 2021. So you may want to make a habit
146 of explicitly de ning these a ributes for now, to avoid any disruption when the defaults change.
147
148 You can also control the perspective with `data-perspective="500"` giving it a number of pixels.
149 It defaults to 1000. You can set it to 0 if you don't want any 3D e ects.
150 If you are willing to change this value make sure you understand how CSS perspective works:
151 h ps://developer.mozilla.org/en/CSS/perspective
152
153 Plugins:
154
155 We set the default time for autoplay plugin to 7 seconds. Autoplay will automatically advance
156 to next slide a er a timeout expires.
157 -->
158 <div id="impress"
159 data-transition-duration="1000"
160
161 data-width="1024"
162 data-height="768"
163 data-max-scale="3"
164 data-min-scale="0"
165 data-perspective="1000"
166
167 data-autoplay="7">
168
169 <!--
170
171 Here is where interesting thing sta to happen.
172
173 Each step of the presentation should be an element inside the `#impress` with a class name
174 of `step`. These step elements are positioned, rotated and scaled by impress.js, and
175 the 'camera' shows them on each step of the presentation.
176
177 Positioning information is passed through data a ributes.
178
179 In the example below we only specify x and y position of the step element with `data-x="-1000"`
180 and `data-y="-1500"` a ributes. This means that **the center** of the element (yes, the center)
181 will be positioned in point x = -1000px and y = -1500px of the presentation 'canvas'.
182