Skip to content

Commit 76e5650

Browse files
author
Martino
committed
Small bugfix
1 parent 9d9825b commit 76e5650

File tree

4 files changed

+21
-28
lines changed

4 files changed

+21
-28
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,10 @@ Reveal.initialize({
118118
appearevent: 'slidetransitionend',
119119
autoappear: false,
120120
autoelements: false,
121-
csspath: {
122-
appearance: '',
123-
animatecss: {
124-
link : 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css',
125-
compat : 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.compat.css',
126-
}
121+
csspath: '',
122+
animatecsspath: {
123+
link : 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css',
124+
compat : 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.compat.css',
127125
},
128126
compatibility: false,
129127
compatibilitybaseclass: 'animated'
@@ -137,7 +135,8 @@ Reveal.initialize({
137135
* **`appearevent`**: Use a specific event at which Appearance starts.
138136
* **`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 "Using 'autoappear'" mode below.
139137
* **`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.
140-
* **`csspath`**: Appearance will automatically load the Animate.css styling and the styling of the plugin itself. If you want to customise the styling, you can link to your own CSS files here for each of the styles. 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.
138+
* **`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 Animeta.css has two links, the first (CDN) one is for version 4, the second (old) one is the version 3 compatibility CDN link.
141140
* **`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.
142141
* **`compatibilitybaseclass`**: This is the baseclass to use if you don't change your markup.
143142

plugin/appearance/appearance.esm.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,10 @@ var Plugin = function Plugin() {
339339
appearevent: 'slidetransitionend',
340340
autoappear: false,
341341
autoelements: false,
342-
csspath: {
343-
appearance: '',
344-
animatecss: {
345-
link: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css',
346-
compat: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.compat.css'
347-
}
342+
csspath: '',
343+
animatecsspath: {
344+
link: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css',
345+
compat: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.compat.css'
348346
},
349347
compatibility: false,
350348
compatibilitybaseclass: 'animated'
@@ -375,7 +373,7 @@ var Plugin = function Plugin() {
375373
}
376374

377375
var AppearanceStylePath = options.csspath.appearance ? options.csspath.appearance : "".concat(pluginPath(), "appearance.css") || 'plugin/appearance/appearance.css';
378-
var AnimateCSSPath = !options.compatibility ? options.csspath.animatecss.link : options.csspath.animatecss.compat;
376+
var AnimateCSSPath = !options.compatibility ? options.animatecsspath.link : options.animatecsspath.compat;
379377

380378
if (options.debug) {
381379
console.log("Plugin path = ".concat(pluginPath()));

plugin/appearance/appearance.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -345,12 +345,10 @@
345345
appearevent: 'slidetransitionend',
346346
autoappear: false,
347347
autoelements: false,
348-
csspath: {
349-
appearance: '',
350-
animatecss: {
351-
link: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css',
352-
compat: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.compat.css'
353-
}
348+
csspath: '',
349+
animatecsspath: {
350+
link: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css',
351+
compat: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.compat.css'
354352
},
355353
compatibility: false,
356354
compatibilitybaseclass: 'animated'
@@ -381,7 +379,7 @@
381379
}
382380

383381
var AppearanceStylePath = options.csspath.appearance ? options.csspath.appearance : "".concat(pluginPath(), "appearance.css") || 'plugin/appearance/appearance.css';
384-
var AnimateCSSPath = !options.compatibility ? options.csspath.animatecss.link : options.csspath.animatecss.compat;
382+
var AnimateCSSPath = !options.compatibility ? options.animatecsspath.link : options.animatecsspath.compat;
385383

386384
if (options.debug) {
387385
console.log("Plugin path = ".concat(pluginPath()));

plugin/appearance/plugin-src.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,10 @@ const Plugin = () => {
204204
appearevent: 'slidetransitionend',
205205
autoappear: false,
206206
autoelements: false,
207-
csspath: {
208-
appearance: '',
209-
animatecss: {
210-
link : 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css',
211-
compat : 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.compat.css',
212-
}
207+
csspath: '',
208+
animatecsspath: {
209+
link : 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css',
210+
compat : 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.compat.css',
213211
},
214212
compatibility: false,
215213
compatibilitybaseclass: 'animated'
@@ -238,7 +236,7 @@ const Plugin = () => {
238236
}
239237

240238
let AppearanceStylePath = options.csspath.appearance ? options.csspath.appearance : null || `${pluginPath()}appearance.css` || 'plugin/appearance/appearance.css'
241-
let AnimateCSSPath = !options.compatibility ? options.csspath.animatecss.link :options.csspath.animatecss.compat;
239+
let AnimateCSSPath = !options.compatibility ? options.animatecsspath.link : options.animatecsspath.compat;
242240

243241
if (options.debug) {
244242
console.log(`Plugin path = ${pluginPath()}`);

0 commit comments

Comments
 (0)