--- a/svghmi/widget_jump.ysl2 Mon Jun 13 11:57:37 2022 +0200
+++ b/svghmi/widget_jump.ysl2 Mon Jun 13 12:03:58 2022 +0200
@@ -66,10 +66,9 @@
/* TODO: in order to allow jumps to page selected through for exemple a dropdown,
support path pointing to local variable whom value
would be an HMI_TREE index and then jump to a relative page not hard-coded in advance */
-
if(!that.disabled) {
const index = that.indexes.length > 0 ? that.indexes[0] + that.offset : undefined;
- switch_page(name, index);
+ fading_page_switch(name, index);
}
}
}
@@ -143,6 +142,19 @@
}
}
+emit "cssdefs:jump"
+||
+.fade-out-page {
+ animation: fadeOut 0.6s;
+}
+
+@keyframes fadeOut {
+ 0% { opacity: 1; }
+ 100% { opacity: 0; }
+}
+
+||
+
emit "declarations:jump"
||
var jumps_need_update = false;