Cog animations

This commit is contained in:
Jose Gonzalez 2023-02-20 15:16:27 +01:00
parent 6808fb0655
commit 49fc725cdc
2 changed files with 20 additions and 0 deletions

View File

@ -10361,6 +10361,19 @@ button div.fail {
-webkit-mask: url(../../images/fail@svg.svg) no-repeat center / contain;
}
button div.cog.rotation {
animation: rotation 4s infinite linear;
}
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
.ui-dialog-buttonset {
width: 100%;
display: flex;

View File

@ -1670,4 +1670,11 @@ require 'include/php_to_js_values.php';
}
);
});
// Cog animations.
$(document).ready(function() {
$(".submitButton").click(function(){
$("#"+this.id+" > .subIcon.cog").addClass("rotation");
});
});
</script>