reveal.js-appearance 1.3.0 → 1.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reveal.js-appearance",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
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": [
6
6
  "reveal",
@@ -37,12 +37,12 @@
37
37
  },
38
38
  "browserslist": "> 2%, not dead",
39
39
  "devDependencies": {
40
- "@babel/preset-env": "^7.22.5",
41
- "@rollup/plugin-babel": "^6.0.3",
42
- "@rollup/plugin-commonjs": "^25.0.2",
43
- "@rollup/plugin-node-resolve": "^15.1.0",
40
+ "@babel/preset-env": "^7.23.2",
41
+ "@rollup/plugin-babel": "^6.0.4",
42
+ "@rollup/plugin-commonjs": "^25.0.7",
43
+ "@rollup/plugin-node-resolve": "^15.2.3",
44
+ "@rollup/plugin-terser": "^0.4.4",
44
45
  "browser-sync": "^2.29.3",
45
- "core-js": "^3.31.0",
46
46
  "del": "^5.1.0",
47
47
  "gulp": "^4.0.2",
48
48
  "gulp-autoprefixer": "^8.0.0",
@@ -52,7 +52,7 @@
52
52
  "gulp-rename": "^2.0.0",
53
53
  "gulp-sass": "^5.1.0",
54
54
  "merge-stream": "^2.0.0",
55
- "rollup": "^2.79.1",
55
+ "rollup": "^4.2.0",
56
56
  "sass": "^1.63.6"
57
57
  },
58
58
  "dependencies": {
@@ -2,7 +2,7 @@
2
2
  /*****************************************************************
3
3
  *
4
4
  * Appearance for Reveal.js
5
- * Version 1.3.0
5
+ * Version 1.3.1
6
6
  *
7
7
  * @author: Martijn De Jongh (Martino), martijn.de.jongh@gmail.com
8
8
  * https://github.com/martinomagnifico
@@ -148,6 +148,16 @@
148
148
  }
149
149
 
150
150
  /* Animate.css overrides */
151
+ section:not(.stack):not([data-appearance-can-start]) .animate__animated, section:not(.stack):not([data-appearance-can-start]) .animated {
152
+ opacity: 0;
153
+ animation: none;
154
+ }
155
+
156
+ section:not(.stack)[data-appearance-can-start] .animate__animated:not(.fragment), section:not(.stack)[data-appearance-can-start] .animated:not(.fragment) {
157
+ opacity: 1;
158
+ }
159
+
160
+ /* Animations inside fragments */
151
161
  section:not(.stack):not([data-appearance-can-start]) .animate__animated,
152
162
  section:not(.stack):not([data-appearance-can-start]) .animated,
153
163
  .fragment:not(.visible) .animate__animated,
@@ -165,25 +175,33 @@ section:not(.stack):not([data-appearance-can-start]) .animated,
165
175
  opacity: 1;
166
176
  }
167
177
 
168
- .fragment.animate__animated:not(.visible), .fragment.animated:not(.visible) {
169
- transition: opacity 0.3s ease-in-out !important;
178
+ /* Animations which are also fragments */
179
+ .reveal .fragment.animate__animated:not(.visible), .reveal .fragment.animated:not(.visible) {
180
+ transition: all 0.2s ease;
170
181
  opacity: 0;
171
182
  animation: none;
172
183
  will-change: animation;
173
184
  }
174
- .fragment.animate__animated.visible.animate__animated, .fragment.animate__animated.visible.animated, .fragment.animated.visible.animate__animated, .fragment.animated.visible.animated {
185
+ .reveal .fragment.animate__animated.visible:not(.animationended), .reveal .fragment.animated.visible:not(.animationended) {
175
186
  transition: none;
176
187
  }
188
+ .reveal .fragment.animate__animated.visible.animationended, .reveal .fragment.animated.visible.animationended {
189
+ animation: none;
190
+ transition: all 0.2s ease;
191
+ }
177
192
 
178
193
  i.animate__animated, i.animated, span.animate__animated, span.animated {
179
194
  display: inline-block;
180
195
  }
181
196
 
182
- .animate__animated.animationended,
183
- .animated.animationended {
197
+ .animate__animated[data-auto-animate-target]:not([data-auto-animate-target=unmatched]) {
184
198
  animation: none;
185
199
  }
186
200
 
201
+ [data-auto-animate=running] .animate__animated[data-auto-animate-target]:not([data-auto-animate-target=unmatched]) {
202
+ opacity: 1 !important;
203
+ }
204
+
187
205
  .fast, .animate__fast {
188
206
  animation-duration: calc(var(--animate-duration) * 0.8);
189
207
  }