animejs 4.3.3 → 4.3.5
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/dist/bundles/anime.esm.js +73 -58
- package/dist/bundles/anime.esm.min.js +2 -2
- package/dist/bundles/anime.umd.js +73 -58
- package/dist/bundles/anime.umd.min.js +2 -2
- package/dist/modules/animatable/animatable.cjs +1 -1
- package/dist/modules/animatable/animatable.js +1 -1
- package/dist/modules/animatable/index.cjs +1 -1
- package/dist/modules/animatable/index.js +1 -1
- package/dist/modules/animation/additive.cjs +1 -1
- package/dist/modules/animation/additive.js +1 -1
- package/dist/modules/animation/animation.cjs +1 -1
- package/dist/modules/animation/animation.js +1 -1
- package/dist/modules/animation/composition.cjs +1 -1
- package/dist/modules/animation/composition.js +1 -1
- package/dist/modules/animation/index.cjs +1 -1
- package/dist/modules/animation/index.js +1 -1
- package/dist/modules/core/clock.cjs +1 -1
- package/dist/modules/core/clock.js +1 -1
- package/dist/modules/core/colors.cjs +1 -1
- package/dist/modules/core/colors.js +1 -1
- package/dist/modules/core/consts.cjs +3 -1
- package/dist/modules/core/consts.d.ts +1 -0
- package/dist/modules/core/consts.js +3 -2
- package/dist/modules/core/globals.cjs +2 -2
- package/dist/modules/core/globals.js +2 -2
- package/dist/modules/core/helpers.cjs +5 -5
- package/dist/modules/core/helpers.js +6 -6
- package/dist/modules/core/render.cjs +1 -1
- package/dist/modules/core/render.js +1 -1
- package/dist/modules/core/styles.cjs +1 -1
- package/dist/modules/core/styles.js +1 -1
- package/dist/modules/core/targets.cjs +1 -1
- package/dist/modules/core/targets.js +1 -1
- package/dist/modules/core/transforms.cjs +1 -1
- package/dist/modules/core/transforms.js +1 -1
- package/dist/modules/core/units.cjs +1 -1
- package/dist/modules/core/units.js +1 -1
- package/dist/modules/core/values.cjs +1 -1
- package/dist/modules/core/values.js +1 -1
- package/dist/modules/draggable/draggable.cjs +1 -1
- package/dist/modules/draggable/draggable.js +1 -1
- package/dist/modules/draggable/index.cjs +1 -1
- package/dist/modules/draggable/index.js +1 -1
- package/dist/modules/easings/cubic-bezier/index.cjs +1 -1
- package/dist/modules/easings/cubic-bezier/index.js +1 -1
- package/dist/modules/easings/eases/index.cjs +1 -1
- package/dist/modules/easings/eases/index.js +1 -1
- package/dist/modules/easings/eases/parser.cjs +1 -1
- package/dist/modules/easings/eases/parser.js +1 -1
- package/dist/modules/easings/index.cjs +1 -1
- package/dist/modules/easings/index.js +1 -1
- package/dist/modules/easings/irregular/index.cjs +1 -1
- package/dist/modules/easings/irregular/index.js +1 -1
- package/dist/modules/easings/linear/index.cjs +1 -1
- package/dist/modules/easings/linear/index.js +1 -1
- package/dist/modules/easings/none.cjs +1 -1
- package/dist/modules/easings/none.js +1 -1
- package/dist/modules/easings/spring/index.cjs +1 -1
- package/dist/modules/easings/spring/index.js +1 -1
- package/dist/modules/easings/steps/index.cjs +1 -1
- package/dist/modules/easings/steps/index.js +1 -1
- package/dist/modules/engine/engine.cjs +1 -1
- package/dist/modules/engine/engine.js +1 -1
- package/dist/modules/engine/index.cjs +1 -1
- package/dist/modules/engine/index.js +1 -1
- package/dist/modules/events/index.cjs +1 -1
- package/dist/modules/events/index.js +1 -1
- package/dist/modules/events/scroll.cjs +5 -4
- package/dist/modules/events/scroll.js +5 -4
- package/dist/modules/index.cjs +1 -1
- package/dist/modules/index.js +1 -1
- package/dist/modules/layout/index.cjs +1 -1
- package/dist/modules/layout/index.js +1 -1
- package/dist/modules/layout/layout.cjs +55 -46
- package/dist/modules/layout/layout.js +55 -46
- package/dist/modules/scope/index.cjs +1 -1
- package/dist/modules/scope/index.js +1 -1
- package/dist/modules/scope/scope.cjs +1 -1
- package/dist/modules/scope/scope.js +1 -1
- package/dist/modules/svg/drawable.cjs +1 -1
- package/dist/modules/svg/drawable.js +1 -1
- package/dist/modules/svg/helpers.cjs +1 -1
- package/dist/modules/svg/helpers.js +1 -1
- package/dist/modules/svg/index.cjs +1 -1
- package/dist/modules/svg/index.js +1 -1
- package/dist/modules/svg/morphto.cjs +1 -1
- package/dist/modules/svg/morphto.js +1 -1
- package/dist/modules/svg/motionpath.cjs +1 -1
- package/dist/modules/svg/motionpath.js +1 -1
- package/dist/modules/text/index.cjs +1 -1
- package/dist/modules/text/index.js +1 -1
- package/dist/modules/text/split.cjs +1 -1
- package/dist/modules/text/split.js +1 -1
- package/dist/modules/timeline/index.cjs +1 -1
- package/dist/modules/timeline/index.js +1 -1
- package/dist/modules/timeline/position.cjs +1 -1
- package/dist/modules/timeline/position.js +1 -1
- package/dist/modules/timeline/timeline.cjs +8 -4
- package/dist/modules/timeline/timeline.js +8 -4
- package/dist/modules/timer/index.cjs +1 -1
- package/dist/modules/timer/index.js +1 -1
- package/dist/modules/timer/timer.cjs +1 -1
- package/dist/modules/timer/timer.js +1 -1
- package/dist/modules/utils/chainable.cjs +1 -1
- package/dist/modules/utils/chainable.js +1 -1
- package/dist/modules/utils/index.cjs +1 -1
- package/dist/modules/utils/index.js +1 -1
- package/dist/modules/utils/number.cjs +1 -1
- package/dist/modules/utils/number.js +1 -1
- package/dist/modules/utils/random.cjs +1 -1
- package/dist/modules/utils/random.js +1 -1
- package/dist/modules/utils/stagger.cjs +1 -1
- package/dist/modules/utils/stagger.js +1 -1
- package/dist/modules/utils/target.cjs +1 -1
- package/dist/modules/utils/target.js +1 -1
- package/dist/modules/utils/time.cjs +1 -1
- package/dist/modules/utils/time.js +1 -1
- package/dist/modules/waapi/composition.cjs +2 -2
- package/dist/modules/waapi/composition.js +2 -2
- package/dist/modules/waapi/index.cjs +1 -1
- package/dist/modules/waapi/index.js +1 -1
- package/dist/modules/waapi/waapi.cjs +1 -1
- package/dist/modules/waapi/waapi.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - timeline - CJS
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -220,6 +220,10 @@ class Timeline extends timer.Timer {
|
|
|
220
220
|
if (helpers.isUnd(synced) || synced && helpers.isUnd(synced.pause)) return this;
|
|
221
221
|
synced.pause();
|
|
222
222
|
const duration = +(/** @type {globalThis.Animation} */(synced).effect ? /** @type {globalThis.Animation} */(synced).effect.getTiming().duration : /** @type {Tickable} */(synced).duration);
|
|
223
|
+
// Forces WAAPI Animation to persist; otherwise, they will stop syncing on finish.
|
|
224
|
+
if (!helpers.isUnd(synced) && !helpers.isUnd(/** @type {WAAPIAnimation} */(synced).persist)) {
|
|
225
|
+
/** @type {WAAPIAnimation} */(synced).persist = true;
|
|
226
|
+
}
|
|
223
227
|
return this.add(synced, { currentTime: [0, duration], duration, delay: 0, ease: 'linear', playbackEase: 'linear' }, position);
|
|
224
228
|
}
|
|
225
229
|
|
|
@@ -286,8 +290,8 @@ class Timeline extends timer.Timer {
|
|
|
286
290
|
* @return {this}
|
|
287
291
|
*/
|
|
288
292
|
refresh() {
|
|
289
|
-
helpers.forEachChildren(this, (/** @type {JSAnimation} */child) => {
|
|
290
|
-
if (child.refresh) child.refresh();
|
|
293
|
+
helpers.forEachChildren(this, (/** @type {JSAnimation|Timer} */child) => {
|
|
294
|
+
if (/** @type {JSAnimation} */(child).refresh) /** @type {JSAnimation} */(child).refresh();
|
|
291
295
|
});
|
|
292
296
|
return this;
|
|
293
297
|
}
|
|
@@ -297,7 +301,7 @@ class Timeline extends timer.Timer {
|
|
|
297
301
|
*/
|
|
298
302
|
revert() {
|
|
299
303
|
super.revert();
|
|
300
|
-
helpers.forEachChildren(this, (/** @type {JSAnimation} */child) => child.revert, true);
|
|
304
|
+
helpers.forEachChildren(this, (/** @type {JSAnimation|Timer} */child) => child.revert, true);
|
|
301
305
|
return styles.cleanInlineStyles(this);
|
|
302
306
|
}
|
|
303
307
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - timeline - ESM
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -218,6 +218,10 @@ class Timeline extends Timer {
|
|
|
218
218
|
if (isUnd(synced) || synced && isUnd(synced.pause)) return this;
|
|
219
219
|
synced.pause();
|
|
220
220
|
const duration = +(/** @type {globalThis.Animation} */(synced).effect ? /** @type {globalThis.Animation} */(synced).effect.getTiming().duration : /** @type {Tickable} */(synced).duration);
|
|
221
|
+
// Forces WAAPI Animation to persist; otherwise, they will stop syncing on finish.
|
|
222
|
+
if (!isUnd(synced) && !isUnd(/** @type {WAAPIAnimation} */(synced).persist)) {
|
|
223
|
+
/** @type {WAAPIAnimation} */(synced).persist = true;
|
|
224
|
+
}
|
|
221
225
|
return this.add(synced, { currentTime: [0, duration], duration, delay: 0, ease: 'linear', playbackEase: 'linear' }, position);
|
|
222
226
|
}
|
|
223
227
|
|
|
@@ -284,8 +288,8 @@ class Timeline extends Timer {
|
|
|
284
288
|
* @return {this}
|
|
285
289
|
*/
|
|
286
290
|
refresh() {
|
|
287
|
-
forEachChildren(this, (/** @type {JSAnimation} */child) => {
|
|
288
|
-
if (child.refresh) child.refresh();
|
|
291
|
+
forEachChildren(this, (/** @type {JSAnimation|Timer} */child) => {
|
|
292
|
+
if (/** @type {JSAnimation} */(child).refresh) /** @type {JSAnimation} */(child).refresh();
|
|
289
293
|
});
|
|
290
294
|
return this;
|
|
291
295
|
}
|
|
@@ -295,7 +299,7 @@ class Timeline extends Timer {
|
|
|
295
299
|
*/
|
|
296
300
|
revert() {
|
|
297
301
|
super.revert();
|
|
298
|
-
forEachChildren(this, (/** @type {JSAnimation} */child) => child.revert, true);
|
|
302
|
+
forEachChildren(this, (/** @type {JSAnimation|Timer} */child) => child.revert, true);
|
|
299
303
|
return cleanInlineStyles(this);
|
|
300
304
|
}
|
|
301
305
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - waapi - CJS
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -82,7 +82,7 @@ const addWAAPIAnimation = (parent, $el, property, keyframes, params) => {
|
|
|
82
82
|
parent.animations.push(animation);
|
|
83
83
|
removeWAAPIAnimation($el, property);
|
|
84
84
|
helpers.addChild(WAAPIAnimationsLookups, { parent, animation, $el, property, _next: null, _prev: null });
|
|
85
|
-
const handleRemove = () =>
|
|
85
|
+
const handleRemove = () => removeWAAPIAnimation($el, property, parent);
|
|
86
86
|
animation.oncancel = handleRemove;
|
|
87
87
|
animation.onremove = handleRemove;
|
|
88
88
|
if (!parent.persist) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - waapi - ESM
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.5
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -80,7 +80,7 @@ const addWAAPIAnimation = (parent, $el, property, keyframes, params) => {
|
|
|
80
80
|
parent.animations.push(animation);
|
|
81
81
|
removeWAAPIAnimation($el, property);
|
|
82
82
|
addChild(WAAPIAnimationsLookups, { parent, animation, $el, property, _next: null, _prev: null });
|
|
83
|
-
const handleRemove = () =>
|
|
83
|
+
const handleRemove = () => removeWAAPIAnimation($el, property, parent);
|
|
84
84
|
animation.oncancel = handleRemove;
|
|
85
85
|
animation.onremove = handleRemove;
|
|
86
86
|
if (!parent.persist) {
|