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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "mywebui",
4
- "version": "1.37.70",
4
+ "version": "1.37.71",
5
5
  "titleLang": {
6
6
  "en": "mywebui",
7
7
  "de": "mywebui",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.mywebui",
3
- "version": "1.37.70",
3
+ "version": "1.37.71",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -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