reveal.js-appearance 1.1.2 → 1.1.3
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 +5 -0
- package/README.md +1 -1
- package/package.json +2 -2
- package/plugin/appearance/appearance.esm.js +17 -11
- package/plugin/appearance/appearance.js +17 -11
- package/plugin/appearance/plugin-src.js +11 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](#) [](https://github.com/Martinomagnifico/reveal.js-appearance/archive/refs/heads/master.zip)
|
|
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
|
[](https://martinomagnifico.github.io/reveal.js-appearance/demo.html)
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reveal.js-appearance",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.1.3",
|
|
4
|
+
"description": "An animation plugin for Reveal.js that animates elements sequentially like in Powerpoint. Perfect for online portfolios or other presentations with images.",
|
|
5
5
|
"keywords": "reveal, reveal.js, reveal-plugin, plugin, text effects, powerpoint",
|
|
6
6
|
"homepage": "https://github.com/Martinomagnifico/reveal.js-appearance",
|
|
7
7
|
"repository": {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* https://github.com/Martinomagnifico
|
|
5
5
|
*
|
|
6
6
|
* Appearance.js for Reveal.js
|
|
7
|
-
* Version 1.1.
|
|
7
|
+
* Version 1.1.3
|
|
8
8
|
*
|
|
9
9
|
* @license
|
|
10
10
|
* MIT licensed
|
|
@@ -284,21 +284,27 @@ var Plugin = function Plugin() {
|
|
|
284
284
|
|
|
285
285
|
if (etype == "slidetransitionend") {
|
|
286
286
|
if (options.hideagain) {
|
|
287
|
-
|
|
287
|
+
if (slides.from) {
|
|
288
|
+
if (slides.from.dataset.appearanceCanStart) {
|
|
289
|
+
delete slides.from.dataset.appearanceCanStart;
|
|
290
|
+
}
|
|
288
291
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
var fromFragments = slides.from.querySelectorAll(".fragment.visible");
|
|
293
|
+
|
|
294
|
+
if (fromFragments) {
|
|
295
|
+
fromFragments.forEach(function (fragment) {
|
|
296
|
+
fragment.classList.remove('visible');
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}
|
|
294
300
|
}
|
|
295
301
|
}
|
|
296
302
|
|
|
297
303
|
if (event.type == 'slidechanged' && document.body.dataset.exitoverview) {
|
|
298
304
|
if (options.hideagain) {
|
|
299
|
-
var _slides$
|
|
305
|
+
var _slides$from;
|
|
300
306
|
|
|
301
|
-
(_slides$
|
|
307
|
+
(_slides$from = slides.from) === null || _slides$from === void 0 ? true : delete _slides$from.dataset.appearanceCanStart;
|
|
302
308
|
}
|
|
303
309
|
|
|
304
310
|
slides.to.dataset.appearanceCanStart = true;
|
|
@@ -310,9 +316,9 @@ var Plugin = function Plugin() {
|
|
|
310
316
|
|
|
311
317
|
if (event.currentSlide) {
|
|
312
318
|
if (options.hideagain) {
|
|
313
|
-
var _slides$
|
|
319
|
+
var _slides$from2;
|
|
314
320
|
|
|
315
|
-
(_slides$
|
|
321
|
+
(_slides$from2 = slides.from) === null || _slides$from2 === void 0 ? true : delete _slides$from2.dataset.appearanceCanStart;
|
|
316
322
|
}
|
|
317
323
|
|
|
318
324
|
slides.to.dataset.appearanceCanStart = true;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* https://github.com/Martinomagnifico
|
|
5
5
|
*
|
|
6
6
|
* Appearance.js for Reveal.js
|
|
7
|
-
* Version 1.1.
|
|
7
|
+
* Version 1.1.3
|
|
8
8
|
*
|
|
9
9
|
* @license
|
|
10
10
|
* MIT licensed
|
|
@@ -290,21 +290,27 @@
|
|
|
290
290
|
|
|
291
291
|
if (etype == "slidetransitionend") {
|
|
292
292
|
if (options.hideagain) {
|
|
293
|
-
|
|
293
|
+
if (slides.from) {
|
|
294
|
+
if (slides.from.dataset.appearanceCanStart) {
|
|
295
|
+
delete slides.from.dataset.appearanceCanStart;
|
|
296
|
+
}
|
|
294
297
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
298
|
+
var fromFragments = slides.from.querySelectorAll(".fragment.visible");
|
|
299
|
+
|
|
300
|
+
if (fromFragments) {
|
|
301
|
+
fromFragments.forEach(function (fragment) {
|
|
302
|
+
fragment.classList.remove('visible');
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
300
306
|
}
|
|
301
307
|
}
|
|
302
308
|
|
|
303
309
|
if (event.type == 'slidechanged' && document.body.dataset.exitoverview) {
|
|
304
310
|
if (options.hideagain) {
|
|
305
|
-
var _slides$
|
|
311
|
+
var _slides$from;
|
|
306
312
|
|
|
307
|
-
(_slides$
|
|
313
|
+
(_slides$from = slides.from) === null || _slides$from === void 0 ? true : delete _slides$from.dataset.appearanceCanStart;
|
|
308
314
|
}
|
|
309
315
|
|
|
310
316
|
slides.to.dataset.appearanceCanStart = true;
|
|
@@ -316,9 +322,9 @@
|
|
|
316
322
|
|
|
317
323
|
if (event.currentSlide) {
|
|
318
324
|
if (options.hideagain) {
|
|
319
|
-
var _slides$
|
|
325
|
+
var _slides$from2;
|
|
320
326
|
|
|
321
|
-
(_slides$
|
|
327
|
+
(_slides$from2 = slides.from) === null || _slides$from2 === void 0 ? true : delete _slides$from2.dataset.appearanceCanStart;
|
|
322
328
|
}
|
|
323
329
|
|
|
324
330
|
slides.to.dataset.appearanceCanStart = true;
|
|
@@ -156,11 +156,17 @@ const Plugin = () => {
|
|
|
156
156
|
|
|
157
157
|
if (etype == "slidetransitionend") {
|
|
158
158
|
if (options.hideagain) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
if (slides.from) {
|
|
160
|
+
if (slides.from.dataset.appearanceCanStart) {
|
|
161
|
+
delete slides.from.dataset.appearanceCanStart;
|
|
162
|
+
}
|
|
163
|
+
let fromFragments = slides.from.querySelectorAll(`.fragment.visible`);
|
|
164
|
+
if (fromFragments) {
|
|
165
|
+
fromFragments.forEach(fragment => {
|
|
166
|
+
fragment.classList.remove('visible');
|
|
167
|
+
})
|
|
168
|
+
}
|
|
169
|
+
}
|
|
164
170
|
}
|
|
165
171
|
}
|
|
166
172
|
|