iobroker.mywebui 1.37.70 → 1.37.71
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/io-package.json
CHANGED
package/package.json
CHANGED
|
@@ -87,10 +87,12 @@ function buildTweenConfig(cfg, value) {
|
|
|
87
87
|
case 'scale':
|
|
88
88
|
config.scale = cfg.valueTo != null ? parseFloat(cfg.valueTo)
|
|
89
89
|
: (typeof normalVal === 'boolean' ? (normalVal ? 1.5 : 1) : numVal);
|
|
90
|
+
if (cfg.valueFrom != null) config.startAt = { scale: parseFloat(cfg.valueFrom) };
|
|
90
91
|
break;
|
|
91
92
|
case 'opacity':
|
|
92
93
|
config.opacity = cfg.valueTo != null ? parseFloat(cfg.valueTo)
|
|
93
94
|
: (typeof normalVal === 'boolean' ? (normalVal ? 1 : 0) : numVal);
|
|
95
|
+
if (cfg.valueFrom != null) config.startAt = { opacity: parseFloat(cfg.valueFrom) };
|
|
94
96
|
break;
|
|
95
97
|
case 'translateX':
|
|
96
98
|
config.x = cfg.valueTo != null ? parseFloat(cfg.valueTo)
|
|
@@ -265,6 +267,8 @@ class AnimationInstance {
|
|
|
265
267
|
_play() {
|
|
266
268
|
const gsap = window.gsap;
|
|
267
269
|
if (!gsap) return;
|
|
270
|
+
// If element is display:none, make it visible so GSAP can animate it
|
|
271
|
+
if (this.element.style.display === 'none') this.element.style.display = '';
|
|
268
272
|
if (this.tween) this.tween.kill();
|
|
269
273
|
const effect = this.cfg.effect;
|
|
270
274
|
|