reveal.js-appearance 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +1 -1
- package/README.md +139 -51
- package/css/demo.css +106 -4
- package/demo-markdown.html +62 -0
- package/demo.html +312 -92
- package/img/5.jpg +0 -0
- package/markdown.md +156 -0
- package/package.json +4 -2
- package/plugin/appearance/appearance.css +17 -1
- package/plugin/appearance/appearance.esm.js +251 -162
- package/plugin/appearance/appearance.js +479 -390
- package/plugin/appearance/plugin-src.js +218 -34
- package/screenshot.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.2.0] - 2023-05-05
|
|
4
|
+
### Added
|
|
5
|
+
- Added local, specified, auto-appear
|
|
6
|
+
- Added Markdown example
|
|
7
|
+
- Added fix for Quarto list items
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Reordered documentation
|
|
11
|
+
- Fragments can now be Appearance items
|
|
12
|
+
|
|
13
|
+
|
|
3
14
|
## [1.1.3] - 2022-06-26
|
|
4
15
|
### Changed
|
|
5
16
|
- Fixed a bug if there was no previous slide
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Martijn De Jongh (Martino)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
An animation plugin for [Reveal.js](https://revealjs.com) that animates elements sequentially like in Powerpoint. Perfect for online portfolios or other presentations with images.
|
|
6
6
|
|
|
7
|
-
[
|
|
7
|
+
[<img src="https://martinomagnifico.github.io/reveal.js-appearance/screenshot.png" width="100%">](https://martinomagnifico.github.io/reveal.js-appearance/demo.html)
|
|
8
8
|
|
|
9
9
|
In Powerpoint you can make slides with items that appear automatically with effects. This plugin for Reveal.js tries to achieve the same result. It's easy to set up. It uses Animate.css by Daniel Eden for the animations, with some changes to allow for a non-animated state.
|
|
10
10
|
|
|
@@ -17,6 +17,15 @@ Version 1.1.1 adds an `autoappear` mode for use in cases where adding animation
|
|
|
17
17
|
Appearance v1.1.2 brought some **breaking changes**, please refer to the [migration guide](#migration-guide) before updating from v1.1.1 and under. It also changed the internal delay mechanism to use CSS animation delay in combination to adding the trigger on the parent, not each animated element. This will improve the performance.
|
|
18
18
|
|
|
19
19
|
|
|
20
|
+
## Basics
|
|
21
|
+
|
|
22
|
+
There are really only three steps:
|
|
23
|
+
|
|
24
|
+
1. Install Appearance
|
|
25
|
+
2. Edit the markup to add animation classes
|
|
26
|
+
2. Enjoy the animations
|
|
27
|
+
|
|
28
|
+
|
|
20
29
|
## Installation
|
|
21
30
|
|
|
22
31
|
### Regular installation
|
|
@@ -86,7 +95,87 @@ It is easy to set up your HTML structure for Appearance. Each element that you w
|
|
|
86
95
|
<li class="animate__bounceInLeft">It adds some attention.</li>
|
|
87
96
|
</ul>
|
|
88
97
|
```
|
|
89
|
-
|
|
98
|
+
|
|
99
|
+
When you are working with Markdown (or in any other case), this can be a chore **so if you do not want to add all these classes**, you can set the option `autoappear` to `true` (see [Autoappear](#autoappear) below) and let Appearance do the heavy work.
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## Now change it
|
|
103
|
+
|
|
104
|
+
It is easy to change the effects for Appearance.
|
|
105
|
+
|
|
106
|
+
### Changing the delay
|
|
107
|
+
|
|
108
|
+
Here's how to change the delay per element:
|
|
109
|
+
|
|
110
|
+
```html
|
|
111
|
+
<img class="animate__fadeInDown" data-src="1.jpg" data-delay="200">
|
|
112
|
+
<img class="animate__fadeInDown" data-src="2.jpg" data-delay="160">
|
|
113
|
+
<img class="animate__fadeInDown" data-src="3.jpg" data-delay="120">
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Changing the speed
|
|
117
|
+
|
|
118
|
+
You can change the speed of each animation, using the tempo classes from Animate.css:
|
|
119
|
+
|
|
120
|
+
```html
|
|
121
|
+
<img class="animate__fadeInDown animate__slower" data-src="1.jpg">
|
|
122
|
+
<img class="animate__fadeInDown animate__slow" data-src="2.jpg">
|
|
123
|
+
<img class="animate__fadeInDown animate__fast" data-src="3.jpg">
|
|
124
|
+
<img class="animate__fadeInDown animate__faster" data-src="4.jpg">
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Changing the 'appearevent'
|
|
128
|
+
When you navigate from slide to slide, you can set transition effects in Reveal. These effects take some time. That's why, by default, Appearance only starts when the slide transition has ended.
|
|
129
|
+
|
|
130
|
+
There are cases however, where there is hardly any transition, for example, when going from an autoanimate slide to another. Reveal then suppresses the user-set transition to a short opacity change. Starting *together with* the transition might then be nicer. You can use any of the following events:
|
|
131
|
+
|
|
132
|
+
* *slidetransitionend* (default, Appearance will always start animating elements after the transition)
|
|
133
|
+
* *slidechanged* (Appearance will always start together with the transition)
|
|
134
|
+
* *auto* (Appearance will start together with the transition, but only on autoanimate slides, other slides will use *slidetransitionend*)
|
|
135
|
+
|
|
136
|
+
```html
|
|
137
|
+
<section data-appearevent="auto">
|
|
138
|
+
<ul>
|
|
139
|
+
<li class="animate__fadeInLeft">This is list item 1</li>
|
|
140
|
+
<li class="animate__fadeInLeft">This is list item 2</li>
|
|
141
|
+
<li class="animate__fadeInLeft">This is list item 1</li>
|
|
142
|
+
</ul>
|
|
143
|
+
</section>
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
These same event triggers can be set through the `appearevent` option in the global configuration.
|
|
147
|
+
|
|
148
|
+
When using Appearance inside an autoanimate slide, and changing the appearevent to `slidechanged` or `auto`, keep in mind that Reveal transforms opacity for all non-autoanimate items, while Appearance does the same on most of the effects. To avoid strange behaviour, wrap these Appearance items in a parent. For example, a list of animated bullet points works well, because the animated class is on the children, not the parent. Separate headings or other elements do not have that, so should be wrapped.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## Autoappear
|
|
152
|
+
|
|
153
|
+
You can simplify the addition of animation classes.
|
|
154
|
+
|
|
155
|
+
Sometimes (for example with Markdown), adding classes to elements is a chore. Appearance can automatically add animation classes to specific elements (tags or other selectors) in the presentation (with the option autoappear) or per slide (with data-autoappear).
|
|
156
|
+
|
|
157
|
+
### Global autoappear mode
|
|
158
|
+
|
|
159
|
+
With the option `autoappear` set to `true`, ALL elements in the presentation that have a certain selector (and that are not already classed with your base animation class, like 'animated') will subsequently get this class, and thus an animation. These selectors and the animations can be set in the configuration options like this:
|
|
160
|
+
|
|
161
|
+
```javascript
|
|
162
|
+
Reveal.initialize({
|
|
163
|
+
// ...
|
|
164
|
+
appearance: {
|
|
165
|
+
// ...
|
|
166
|
+
autoappear: true,
|
|
167
|
+
autoelements: {
|
|
168
|
+
'ul li': 'animate__fadeInLeft',
|
|
169
|
+
'ol li': 'animate__fadeInRight'
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
plugins: [ Appearance ]
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
You can add any selector and animation class to this object.
|
|
177
|
+
|
|
178
|
+
Now you do not need to add any classes to the markup and it will stay like this:
|
|
90
179
|
|
|
91
180
|
```html
|
|
92
181
|
<ul>
|
|
@@ -105,6 +194,50 @@ or like this in Markdown:
|
|
|
105
194
|
```
|
|
106
195
|
|
|
107
196
|
|
|
197
|
+
|
|
198
|
+
### Local auto-appear
|
|
199
|
+
|
|
200
|
+
With the option `autoappear` set to `false`, the above still works, but only on a data-attribute basis. ONLY elements in the presentation that are inside sections or fragments with a data-attribute of `data-autoappear` will be animated automatically, with the selectors and animations as described in the configuration:
|
|
201
|
+
|
|
202
|
+
```javascript
|
|
203
|
+
Reveal.initialize({
|
|
204
|
+
// ...
|
|
205
|
+
appearance: {
|
|
206
|
+
// ...
|
|
207
|
+
autoappear: false,
|
|
208
|
+
autoelements: {
|
|
209
|
+
'ul li': 'animate__fadeInLeft',
|
|
210
|
+
'ol li': 'animate__fadeInRight'
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
plugins: [ Appearance ]
|
|
214
|
+
});
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
```html
|
|
218
|
+
<section data-autoappear="true">
|
|
219
|
+
<ul>
|
|
220
|
+
<li>This is list item 1</li>
|
|
221
|
+
<li>This is list item 2</li>
|
|
222
|
+
</ul>
|
|
223
|
+
</section>
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
### Local auto-appear, specified
|
|
228
|
+
|
|
229
|
+
You can also add a JSON object to the slide’s `data-autoappear`, with specific elements, their animations class as a string or an array with animations class, optional speed class and delay.
|
|
230
|
+
|
|
231
|
+
```html
|
|
232
|
+
<section data-autoappear='{"ul li":"animate__fadeInRight","h3":["animate__fadeInDown, animate__slow","100ms"]}'>
|
|
233
|
+
<h3>Local auto-appear, specified</h3>
|
|
234
|
+
<ul>
|
|
235
|
+
<li>This is list item 1</li>
|
|
236
|
+
<li>This is list item 2</li>
|
|
237
|
+
</ul>
|
|
238
|
+
</section>
|
|
239
|
+
```
|
|
240
|
+
|
|
108
241
|
## Configuration
|
|
109
242
|
|
|
110
243
|
There are a few options that you can change from the Reveal.js options. The values below are default and do not need to be set if they are not changed.
|
|
@@ -133,61 +266,15 @@ Reveal.initialize({
|
|
|
133
266
|
* **`hideagain`**: Change this (true/false) if you want to see the shown elements if you go back.
|
|
134
267
|
* **`delay`**: Base time in ms between appearances.
|
|
135
268
|
* **`appearevent`**: Use a specific event at which Appearance starts.
|
|
136
|
-
* **`autoappear`**: Use this when you do not want to add classes to each item that you want to appear, and just let Appearance add animation classes to (all of) the provided elements in the presentation. See "
|
|
269
|
+
* **`autoappear`**: Use this when you do not want to add classes to each item that you want to appear, and just let Appearance add animation classes to (all of) the provided elements in the presentation. See "Autoappear" mode above.
|
|
137
270
|
* **`autoelements`**: These are the elements that `autoappear` will target. Each element has a selector and an animation class. If `autoappear` is off, the elements will still get animation if the section contains a `data-autoappear` attribute.
|
|
138
271
|
* **`csspath`**: Appearance will automatically load the styling of the plugin. If you want to customise the styling, you can link to your own CSS file here.
|
|
139
|
-
* **`animatecsspath`**: Appearance will also automatically load the styling of Animate.css via a CDN. Note that
|
|
272
|
+
* **`animatecsspath`**: Appearance will also automatically load the styling of Animate.css via a CDN. Note that Animate.css has two links, the first (CDN) one is for version 4, the second (old) one is the version 3 compatibility CDN link.
|
|
140
273
|
* **`compatibility`**: This setting can let you use your current markup. However, because this also uses the Animate.css compatibility CSS, and it is likely that they will not support this in the future, please update your markup as shown above.
|
|
141
274
|
* **`compatibilitybaseclass`**: This is the baseclass to use if you don't change your markup.
|
|
142
275
|
|
|
143
|
-
### Changing the 'appearevent'
|
|
144
|
-
When you navigate from slide to slide, you can set transition effects in Reveal. These effects take some time. That's why, by default, Appearance only starts when the slide transition has ended.
|
|
145
|
-
|
|
146
|
-
There are cases however, where there is hardly any transition, for example, when going from an autoanimate slide to another. Reveal then suppresses the user-set transition to a short opacity change. Starting *together with* the transition might then be nicer. You can use any of the following events:
|
|
147
|
-
|
|
148
|
-
* *slidetransitionend* (default, Appearance will start animating elements after the transition)
|
|
149
|
-
* *slidechanged* (Appearance will start together with the transition)
|
|
150
|
-
* *auto* (Appearance will start together with the transition, but only on autoanimate slides, other slides will use *slidetransitionend*)
|
|
151
|
-
|
|
152
|
-
These same event triggers can be set through the data-attribute `data-appearevent`.
|
|
153
|
-
|
|
154
|
-
When using Appearance inside an autoanimate slide, and changing the appearevent to `slidechanged` or `auto`, keep in mind that Reveal transforms opacity for all non-autoanimate items, while Appearance does the same on most of the effects. To avoid strange behaviour, wrap these Appearance items in a parent. For example, a list of animated bullet points works well, because the animated class is on the children, not the parent. Separate headings or other elements do not have that, so should be wrapped.
|
|
155
276
|
|
|
156
277
|
|
|
157
|
-
### Using 'autoappear' mode
|
|
158
|
-
Sometimes (for example with Markdown), adding classes to elements is a chore. Appearance can automatically add animation classes to specific elements, or tags, in the presentation.
|
|
159
|
-
|
|
160
|
-
With the option `autoappear` set to `true`, ALL elements in the presentation that have a certain selector (and that are not already classed with your base animation class, like 'animated') will subsequently get this class, and thus an animation. These selectors and the animations can be set in the configuration options like this:
|
|
161
|
-
|
|
162
|
-
```javascript
|
|
163
|
-
autoelements: {
|
|
164
|
-
'ul li': 'animate__fadeInLeft',
|
|
165
|
-
'ol li': 'animate__fadeInRight'
|
|
166
|
-
}
|
|
167
|
-
```
|
|
168
|
-
You can add any selector and animation class to this object.
|
|
169
|
-
|
|
170
|
-
With the option `autoappear` set to `false`, the above still works, but only on a data-attribute basis. ONLY elements in the presentation that are inside sections or fragments with a data-attribute of `data-autoappear` will be animated automatically.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
## Now change it
|
|
175
|
-
|
|
176
|
-
It is easy to change the effects for Appearance. Here's how to change the delay per-element:
|
|
177
|
-
|
|
178
|
-
```html
|
|
179
|
-
<img class="animate__fadeInDown" data-src="1.jpg" data-delay="200">
|
|
180
|
-
<img class="animate__fadeInDown" data-src="2.jpg" data-delay="160">
|
|
181
|
-
<img class="animate__fadeInDown" data-src="3.jpg" data-delay="120">
|
|
182
|
-
```
|
|
183
|
-
or the speed of each animation, using the tempo classes from Animate.css:
|
|
184
|
-
|
|
185
|
-
```html
|
|
186
|
-
<img class="animate__fadeInDown slower" data-src="1.jpg">
|
|
187
|
-
<img class="animate__fadeInDown slow" data-src="2.jpg">
|
|
188
|
-
<img class="animate__fadeInDown fast" data-src="3.jpg">
|
|
189
|
-
<img class="animate__fadeInDown faster" data-src="4.jpg">
|
|
190
|
-
```
|
|
191
278
|
|
|
192
279
|
## Migration guide
|
|
193
280
|
Appearance v1.1.2 is an update to stay current with the latest version of Animate.css, which itself brought breaking changes in version 4. Animate.css v4 added a prefix for all of the Animate.css classes, defaulting to `animate__` . Appearance will now automatically add the Animate.css base class (`animate__animated`) to any element with a Animate.css animation class.
|
|
@@ -209,6 +296,7 @@ you should now use this:
|
|
|
209
296
|
```
|
|
210
297
|
which is the only change in the markup.
|
|
211
298
|
|
|
299
|
+
|
|
212
300
|
### Turn on compatibility mode
|
|
213
301
|
|
|
214
302
|
If you turn in compatibility mode in Appearance, you can keep using your current markup. However, because this also uses the Animate.css compatibility CSS, this might break your presentations in the future, so it is not recommended. See the options above for compatibility mode and the compatibility base class.
|
|
@@ -224,4 +312,4 @@ And if you want to show off what you made with it, please do :-)
|
|
|
224
312
|
## License
|
|
225
313
|
MIT licensed
|
|
226
314
|
|
|
227
|
-
Copyright (C)
|
|
315
|
+
Copyright (C) 2023 Martijn De Jongh (Martino)
|
package/css/demo.css
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--r-heading-text-transform: none ;
|
|
3
|
+
--r-background-color: #1a1626;
|
|
4
|
+
--r-main-font-size: 40px;
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
.slides {
|
|
2
8
|
opacity: 0;
|
|
3
9
|
-webkit-transition: opacity 0.5s ease;
|
|
@@ -56,12 +62,17 @@
|
|
|
56
62
|
perspective: 1000px;
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
small {
|
|
60
|
-
|
|
65
|
+
p.small {
|
|
66
|
+
font-size: 75%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
p {
|
|
70
|
+
margin: var(--r-block-margin) 0;
|
|
61
71
|
}
|
|
62
72
|
|
|
63
|
-
.
|
|
64
|
-
|
|
73
|
+
.reveal .slides ul li, .reveal .slides ol li {
|
|
74
|
+
margin-top: 0.4em;
|
|
75
|
+
margin-bottom: 0.2em;
|
|
65
76
|
}
|
|
66
77
|
|
|
67
78
|
small code {
|
|
@@ -72,6 +83,24 @@ small code {
|
|
|
72
83
|
border-radius: 0.5rem;
|
|
73
84
|
}
|
|
74
85
|
|
|
86
|
+
p a code {
|
|
87
|
+
background: none;
|
|
88
|
+
padding: 0;
|
|
89
|
+
text-decoration: underline;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
p a[href*=html] {
|
|
93
|
+
text-decoration: underline;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.reveal pre {
|
|
97
|
+
font-size: 0.5em;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.reveal table.imagetable thead {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
75
104
|
a.github-corner {
|
|
76
105
|
position: absolute;
|
|
77
106
|
z-index: 1;
|
|
@@ -82,4 +111,77 @@ a.github-corner {
|
|
|
82
111
|
|
|
83
112
|
a.github-corner:hover {
|
|
84
113
|
color: white;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.reveal pre {
|
|
117
|
+
width: 100%;
|
|
118
|
+
-webkit-box-shadow: none;
|
|
119
|
+
box-shadow: none;
|
|
120
|
+
font-size: 0.5em;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
p code, p kbd, ul code {
|
|
124
|
+
background: rgba(180, 180, 180, 0.2);
|
|
125
|
+
font-size: 0.8em;
|
|
126
|
+
padding: 5px 10px;
|
|
127
|
+
border-radius: 4px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
p kbd, ul kbd {
|
|
131
|
+
font-family: monospace;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.reveal .code-wrapper, pre, pre code {
|
|
135
|
+
white-space: pre-wrap !important;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
em[class*=animate] {
|
|
139
|
+
display: inline-block;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.reveal img.demoimg {
|
|
143
|
+
width: 140px;
|
|
144
|
+
height: 140px;
|
|
145
|
+
max-width: 100%;
|
|
146
|
+
max-height: 100%;
|
|
147
|
+
margin: 0.2em;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.centerblock {
|
|
151
|
+
height: 100%;
|
|
152
|
+
min-height: 100%;
|
|
153
|
+
display: -webkit-box;
|
|
154
|
+
display: -ms-flexbox;
|
|
155
|
+
display: flex;
|
|
156
|
+
-webkit-box-orient: vertical;
|
|
157
|
+
-webkit-box-direction: normal;
|
|
158
|
+
-ms-flex-direction: column;
|
|
159
|
+
flex-direction: column;
|
|
160
|
+
margin: auto;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
ol.twocol {
|
|
164
|
+
padding: 0;
|
|
165
|
+
margin: 0 auto;
|
|
166
|
+
list-style: none;
|
|
167
|
+
counter-reset: item;
|
|
168
|
+
width: 80%;
|
|
169
|
+
-webkit-column-count: 2;
|
|
170
|
+
-moz-column-count: 2;
|
|
171
|
+
column-count: 2;
|
|
172
|
+
-webkit-column-gap: 20px;
|
|
173
|
+
-moz-column-gap: 20px;
|
|
174
|
+
column-gap: 20px;
|
|
175
|
+
}
|
|
176
|
+
ol.twocol li {
|
|
177
|
+
counter-increment: item;
|
|
178
|
+
padding-left: 1.7em;
|
|
179
|
+
}
|
|
180
|
+
ol.twocol li:before {
|
|
181
|
+
content: counter(item) ".";
|
|
182
|
+
margin-left: -1.7em;
|
|
183
|
+
margin-right: 0.5em;
|
|
184
|
+
display: inline-block;
|
|
185
|
+
width: 1.2em;
|
|
186
|
+
text-align: right;
|
|
85
187
|
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>Appearance for Reveal.js</title>
|
|
7
|
+
<meta name="description" content="">
|
|
8
|
+
<meta name="author" content="Martinomagnifico">
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
10
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
11
|
+
<link rel="stylesheet" href="../dist/reset.css">
|
|
12
|
+
<link rel="stylesheet" href="../dist/reveal.css">
|
|
13
|
+
<link rel="stylesheet" href="../dist/theme/black.css">
|
|
14
|
+
<link rel="stylesheet" href="../plugin/highlight/monokai.css">
|
|
15
|
+
<link rel="stylesheet" href="css/demo.css">
|
|
16
|
+
</head>
|
|
17
|
+
|
|
18
|
+
<body>
|
|
19
|
+
<div class="reveal"><a class="github-corner" href="https://github.com/Martinomagnifico/reveal.js-appearance" target="blank" title="View source on GitHub">
|
|
20
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 55 55">
|
|
21
|
+
<path fill="currentColor" d="M27.5 11.2a16.3 16.3 0 0 0-5.1 31.7c.8.2 1.1-.3 1.1-.7v-2.8c-4.5 1-5.5-2.2-5.5-2.2-.7-1.9-1.8-2.4-1.8-2.4-1.5-1 .1-1 .1-1 1.6.1 2.5 1.7 2.5 1.7 1.5 2.5 3.8 1.8 4.7 1.4.2-1 .6-1.8 1-2.2-3.5-.4-7.3-1.8-7.3-8 0-1.8.6-3.3 1.6-4.4-.1-.5-.7-2.1.2-4.4 0 0 1.4-.4 4.5 1.7a15.6 15.6 0 0 1 8.1 0c3.1-2 4.5-1.7 4.5-1.7.9 2.3.3 4 .2 4.4 1 1 1.6 2.6 1.6 4.3 0 6.3-3.8 7.7-7.4 8 .6.6 1.1 1.6 1.1 3v4.6c0 .4.3.9 1.1.7a16.3 16.3 0 0 0-5.2-31.7"></path>
|
|
22
|
+
</svg></a>
|
|
23
|
+
<div class="slides">
|
|
24
|
+
<section data-markdown="markdown.md" data-separator="^
|
|
25
|
+
?
|
|
26
|
+
---
|
|
27
|
+
?
|
|
28
|
+
" data-separator-vertical="^
|
|
29
|
+
?
|
|
30
|
+
----
|
|
31
|
+
?
|
|
32
|
+
" data-charset="utf-8"></section>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<script src="../dist/reveal.js"></script>
|
|
36
|
+
<script src="plugin/appearance/appearance.js"></script>
|
|
37
|
+
<script src="../plugin/highlight/highlight.js"></script>
|
|
38
|
+
<script src="../plugin/markdown/markdown.js"></script>
|
|
39
|
+
<script>
|
|
40
|
+
Reveal.initialize({
|
|
41
|
+
transition: "slide",
|
|
42
|
+
history: true,
|
|
43
|
+
appearance: {
|
|
44
|
+
hideagain: true,
|
|
45
|
+
appearevent: "auto",
|
|
46
|
+
autoappear: true,
|
|
47
|
+
autoelements: {
|
|
48
|
+
"ul li": "animate__fadeInLeft",
|
|
49
|
+
"ol li": "animate__fadeInLeftRight"
|
|
50
|
+
},
|
|
51
|
+
compatibility: false
|
|
52
|
+
},
|
|
53
|
+
plugins: [
|
|
54
|
+
RevealMarkdown,
|
|
55
|
+
Appearance,
|
|
56
|
+
RevealHighlight
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
</script>
|
|
60
|
+
</body>
|
|
61
|
+
|
|
62
|
+
</html>
|