animejs 4.3.3 → 4.3.4
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 +13 -8
- package/dist/bundles/anime.esm.min.js +2 -2
- package/dist/bundles/anime.umd.js +13 -8
- 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 +1 -1
- package/dist/modules/core/consts.js +1 -1
- package/dist/modules/core/globals.cjs +2 -2
- package/dist/modules/core/globals.js +2 -2
- package/dist/modules/core/helpers.cjs +1 -1
- package/dist/modules/core/helpers.js +1 -1
- 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 +1 -1
- package/dist/modules/layout/layout.js +1 -1
- 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 +1 -1
- package/dist/modules/waapi/composition.js +1 -1
- 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 - core - CJS
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.4
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -67,7 +67,7 @@ const globals = {
|
|
|
67
67
|
|
|
68
68
|
const devTools = consts.isBrowser && consts.win.AnimeJSDevTools;
|
|
69
69
|
|
|
70
|
-
const globalVersions = { version: '4.3.
|
|
70
|
+
const globalVersions = { version: '4.3.4', engine: null };
|
|
71
71
|
|
|
72
72
|
if (consts.isBrowser) {
|
|
73
73
|
if (!consts.win.AnimeJS) consts.win.AnimeJS = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - core - ESM
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.4
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -65,7 +65,7 @@ const globals = {
|
|
|
65
65
|
|
|
66
66
|
const devTools = isBrowser && win.AnimeJSDevTools;
|
|
67
67
|
|
|
68
|
-
const globalVersions = { version: '4.3.
|
|
68
|
+
const globalVersions = { version: '4.3.4', engine: null };
|
|
69
69
|
|
|
70
70
|
if (isBrowser) {
|
|
71
71
|
if (!win.AnimeJS) win.AnimeJS = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - events - CJS
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.4
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -500,7 +500,9 @@ class ScrollObserver {
|
|
|
500
500
|
linked.pause();
|
|
501
501
|
this.linked = linked;
|
|
502
502
|
// Forces WAAPI Animation to persist; otherwise, they will stop syncing on finish.
|
|
503
|
-
if (!helpers.isUnd(
|
|
503
|
+
if (!helpers.isUnd(linked) && !helpers.isUnd(/** @type {WAAPIAnimation} */(linked).persist)) {
|
|
504
|
+
/** @type {WAAPIAnimation} */(linked).persist = true;
|
|
505
|
+
}
|
|
504
506
|
// Try to use a target of the linked object if no target parameters specified
|
|
505
507
|
if (!this._params.target) {
|
|
506
508
|
/** @type {HTMLElement} */
|
|
@@ -702,12 +704,11 @@ class ScrollObserver {
|
|
|
702
704
|
// let offsetX = 0;
|
|
703
705
|
// let offsetY = 0;
|
|
704
706
|
// let $offsetParent = $el;
|
|
705
|
-
/** @type {Element} */
|
|
706
707
|
if (linked) {
|
|
707
708
|
linkedTime = linked.currentTime;
|
|
708
709
|
linked.seek(0, true);
|
|
709
710
|
}
|
|
710
|
-
|
|
711
|
+
// Old implementation to get offset and targetSize before fixing https://github.com/juliangarnier/anime/issues/1021
|
|
711
712
|
// const isContainerStatic = get(container.element, 'position') === 'static' ? set(container.element, { position: 'relative '}) : false;
|
|
712
713
|
// while ($el && $el !== container.element && $el !== doc.body) {
|
|
713
714
|
// const isSticky = get($el, 'position') === 'sticky' ?
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Anime.js - events - ESM
|
|
3
|
-
* @version v4.3.
|
|
3
|
+
* @version v4.3.4
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - Julian Garnier
|
|
6
6
|
*/
|
|
@@ -498,7 +498,9 @@ class ScrollObserver {
|
|
|
498
498
|
linked.pause();
|
|
499
499
|
this.linked = linked;
|
|
500
500
|
// Forces WAAPI Animation to persist; otherwise, they will stop syncing on finish.
|
|
501
|
-
if (!isUnd(
|
|
501
|
+
if (!isUnd(linked) && !isUnd(/** @type {WAAPIAnimation} */(linked).persist)) {
|
|
502
|
+
/** @type {WAAPIAnimation} */(linked).persist = true;
|
|
503
|
+
}
|
|
502
504
|
// Try to use a target of the linked object if no target parameters specified
|
|
503
505
|
if (!this._params.target) {
|
|
504
506
|
/** @type {HTMLElement} */
|
|
@@ -700,12 +702,11 @@ class ScrollObserver {
|
|
|
700
702
|
// let offsetX = 0;
|
|
701
703
|
// let offsetY = 0;
|
|
702
704
|
// let $offsetParent = $el;
|
|
703
|
-
/** @type {Element} */
|
|
704
705
|
if (linked) {
|
|
705
706
|
linkedTime = linked.currentTime;
|
|
706
707
|
linked.seek(0, true);
|
|
707
708
|
}
|
|
708
|
-
|
|
709
|
+
// Old implementation to get offset and targetSize before fixing https://github.com/juliangarnier/anime/issues/1021
|
|
709
710
|
// const isContainerStatic = get(container.element, 'position') === 'static' ? set(container.element, { position: 'relative '}) : false;
|
|
710
711
|
// while ($el && $el !== container.element && $el !== doc.body) {
|
|
711
712
|
// const isSticky = get($el, 'position') === 'sticky' ?
|
package/dist/modules/index.cjs
CHANGED
package/dist/modules/index.js
CHANGED