16.11.2020, 07:40
Add to Custom CSS:
Add to Custom JS, change additional class from rotate to spin:
Code:
.spin-animation {
animation: spin 2s infinite linear;
}
@keyframes spin {
from {
transform:rotate(0deg);
}
to {
transform:rotate(360deg);
}
}
Add to Custom JS, change additional class from rotate to spin:
Code:
$(function(){
$('.spin').each(function(i, el) {
var $el = $(el), addr = $el.data('object'); // or 'status-object'
grp.listen(addr, function(obj) {
$el.find('.icon').toggleClass('spin-animation', obj.value > 0);
});
});
});