You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7354dbf
Browse filesBrowse the repository at this point in the historyBrowse files
1.0.0-beta1: Merge 2 years worth of work from dev to master!
Highlights
* New plugin based architecture allows adding more features without bloating core src/impress.js file
* Source files are in src/ and compiled into js/impress.js with npm run build. End users should continue to use js/impress.js as before.
* 19 new plugins
* Integrates impressConsole.js by default (press 'P' to open speaker console)
* Markdown support for those that are too much in a hurry to type HTML
* 5 new demo presentations under examples/ show case the new features
* Removes the code that prevented impress.js from running on mobile phones
Copy file name to clipboardExpand all lines: DOCUMENTATION.md
+37-4Lines changed: 37 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,11 @@ Define the pixel based position in which the **center** of the [Step Element](#s
82
82
</div>
83
83
```
84
84
85
+
**Note:** The introduction of the [rel](src/plugins/rel/README.md) plugin includes a slight backward incompatible change.
86
+
Previously the default value for `data-x`, `data-y` and `data-z` was zero. The `rel` plugin changes the default to inherit
87
+
the value of the previous slide. This means, you need to explicitly set these values to zero, if they ever were non-zero.
88
+
89
+
85
90
#### 3D Rotation (data-rotate-x, data-rotate-y, data-rotate-z)
86
91
87
92
You can not only position a [Step Element](#step-element) in 3D, but also rotate it around any axis.
@@ -106,6 +111,13 @@ You can of course rotate it around Z axis with `data-rotate-z` - it has exactly
106
111
</div>
107
112
```
108
113
114
+
#### 3D Rotation Order (data-rotate-order)
115
+
116
+
The order in which the CSS `rotateX(), rotateY(), rotateZ()` transforms are applied matters. This is because each rotation is relative to the then current position of the element.
117
+
118
+
By default the rotation order is `data-rotate-order="xyz"`. For some advanced uses you may need to change it. The demo presentation [3D rotations](examples/3D-rotations/index.html) sets this attribute to rotate some steps into positions that are impossible to reach with the default order.
119
+
120
+
109
121
## CSS
110
122
111
123
### 4D States (.past, .present and .future classes)
@@ -189,6 +201,11 @@ It is recommended to add the class manually to the `body` element though, becaus
189
201
}
190
202
```
191
203
204
+
## Plugins
205
+
206
+
Many new features are implemented as plugins. The [Plugins documentation](src/plugins/README.md) is the starting place to learn about those, as well as the README.md of [each plugin](src/plugins/).
Copy file name to clipboardExpand all lines: README.md
+55-11Lines changed: 55 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,22 +14,28 @@ impress.js may not help you if you have nothing interesting to say ;)
14
14
HOW TO USE IT
15
15
---------------
16
16
17
-
[Use the source](index.html), Luke ;)
17
+
### Checking out and initializing the git repository
18
18
19
-
The [HTML source code](index.html) serves as a good example usage and contains comments explaning various features of impress.js. For more information about styling you can look into [CSS code](css/impress-demo.css) which shows how classes provided by impress.js can be used. Last but not least [JavaScript code of impress.js](js/impress.js) has some useful comments if you are interested in how everything works. Feel free to explore!
If you want more straightforward reference documentation of all impress.js features and API you can find it in [DOCUMENTATION.md](DOCUMENTATION.md).
22
+
Note: For a minimal checkout, omit the `--recursive` option. This will leave out extra plugins.
22
23
24
+
### Documentation
23
25
24
-
EXAMPLES AND OTHER LEARNING RESOURCES
25
-
---------------------------------------
26
+
27
+
Reference documentation of core impress.js features and API you can find it in [DOCUMENTATION.md](DOCUMENTATION.md).
28
+
29
+
The [HTML source code](index.html) of the official [impress.js demo](http://impress.github.io/impress.js/) serves as a good example usage and contains comments explaning various features of impress.js. For more information about styling you can look into [CSS code](css/impress-demo.css) which shows how classes provided by impress.js can be used. Last but not least [JavaScript code of impress.js](js/impress.js) has some useful comments if you are interested in how everything works. Feel free to explore!
26
30
27
31
### Official demo
28
32
29
33
[impress.js demo](http://impress.github.io/impress.js/) by [@bartaz](http://twitter.com/bartaz)
30
34
31
35
### Examples and demos
32
36
37
+
The [Classic Slides](http://impress.github.io/impress.js/examples/classic-slides/) demo is targeted towards beginners, or can be used as a template for presentations that look like the traditional PowerPoint slide deck. Over time, it also grew into the example presentation that uses most of the features and addons available.
38
+
33
39
More examples and demos can be found on [Examples and demos wiki page](http://github.com/impress/impress.js/wiki/Examples-and-demos).
34
40
35
41
Feel free to add your own example presentations (or websites) there.
@@ -41,20 +47,48 @@ on the wiki, too.
41
47
42
48
There is also a book available about [Building impressive presentations with impress.js](http://www.packtpub.com/building-impressive-presentations-with-impressjs/book) by Rakhitha Nimesh Ratnayake.
43
49
50
+
You may want to check out the sibling project [Impressionist|https://github.com/henrikingo/impressionist]: a 3D GUI editor that can help you in creating impress.js presentations.
51
+
52
+
### Mailing list
53
+
54
+
You're welcome to ask impress.js related questions on the [impressionist-presentations](https://groups.google.com/forum/#!forum/impressionist-presentations) mailing list.
55
+
56
+
57
+
REPOSITORY STRUCTURE
58
+
--------------------
59
+
60
+
*[index.html](index.html): This is the official impress.js demo, showcasing all of the features of the original impress.js, as well as some new plugins as we add them.
61
+
* As already mentioned, this file is well commented and acts as the official tutorial.
62
+
*[examples/](examples/): Contains several demos showcasing additional features available.
63
+
*[Classic Slides](examples/classic-slides/index.html) is a simple demo that that you can use as template if you want to create very simple, rectangular, PowerPoint-like presentations.
64
+
*[src/](src/): The main file is [src/impress.js](src/impress.js). Additional functionality is implemented as plugins in [src/plugins/](src/plugins/).
65
+
* See [src/plugins/README.md](src/plugins/README.md) for information about the plugin API and how to write plugins.
66
+
*[test/](test/): Contains QUnit and Syn libraries that we use for writing tests, as well as some test coverage for core functionality. (Yes, more tests are much welcome.) Tests for plugins are in the directory of each plugin.
67
+
*[js/](js/): Contains [js/impress.js](js/impress.js), which contains a concatenation of the core `src/impress.js` and all the plugins. Traditionally this is the file that you'll link to in a browser. In fact both the demo and test files do exactly that.
68
+
*[css/](css/]: Contains a CSS file used by the demo. This file is **not required for using impress.js** in your own presentations. Impress.js creates the CSS it needs dynamically.
69
+
*[extras/](extras/) contains plugins that for various reasons aren't enabled by default. You have to explicitly add them with their own `script` element to use them.
70
+
*[build.js](build.js): Simple build file that creates `js/impress.js`. It also creates a minified version `impress.min.js`, but that one is not included in the github repository.
71
+
*[package.json](build.js): An NPM package specification. This was mainly added so you can easily install [buildify](https://www.npmjs.com/package/buildify) and run `node build.js`. Other than the build process, which is really just doing roughly `cat src/impress.js src/plugins/*/*.js > js/impress.js`, and testing, `impress.js` itself doesn't depend on Node or any NPM modules.
72
+
*[bower.json](bower.json): A Bower package file. We also don't depend on Bower, but provide this file if you want to use it.
44
73
45
74
WANT TO CONTRIBUTE?
46
75
---------------------
47
76
48
-
Please, read the [contributing guidelines](.github/CONTRIBUTING.md) on how to create [Issues](.github/CONTRIBUTING.md#issues) and [Pull Requests](.github/CONTRIBUTING.md#pull-requests).
77
+
For developers, once you've made changes to the code, you should run these commands for testing:
49
78
50
-
**Note:** The team has changed, so there will be many changes in the upcoming versions.
51
-
If you need informations about versions, check the [changelog](CHANGELOG.md).
79
+
npm run build
80
+
npm run test
81
+
npm run lint
82
+
83
+
Note that running `firefox qunit_test_runner.html` is usually more informative than running `karma` with `npm run test`. They both run the same tests.
84
+
85
+
More info about the [src/](src/) directory can be found in [src/plugins/README.md](src/plugins/README.md).
52
86
53
87
54
88
ABOUT THE NAME
55
89
----------------
56
90
57
-
impress.js name in[courtesy of @skuzniak](http://twitter.com/skuzniak/status/143627215165333504).
91
+
impress.js name is[courtesy of @skuzniak](http://twitter.com/skuzniak/status/143627215165333504).
58
92
59
93
It's an (un)fortunate coincidence that a Open/LibreOffice presentation tool is called Impress ;)
60
94
@@ -66,11 +100,21 @@ See the [Reference API](DOCUMENTATION.md)
66
100
BROWSER SUPPORT
67
101
-----------------
68
102
69
-
This project supports only the major [evergreen](http://eisenbergeffect.bluespire.com/evergreen-browsers/) desktop browsers that have implemented:
103
+
The design goal for impress.js has been to showcase awesome CSS3 features as found in modern browser versions. We also use some new DOM functionality, and specifically do not use jQuery or any other JavaScript libraries, nor our own functions, to support older browsers. In general, recent versions of Firefox and Chrome are known to work well. Reportedly IE now works too.
104
+
105
+
The typical use case for impress.js is to create presentations that you present from your own laptop, with a browser version you know works well. Some people also use impress.js successfully to embed animations or presentations in a web page, however, be aware that in this some of your visitors may not see the presentation correctly, or at all.
106
+
107
+
In particular, impress.js makes use of the following JS and CSS features:
0 commit comments