improving loading icon
This commit is contained in:
parent
5a96969efd
commit
41b5fb5408
2 changed files with 8 additions and 7 deletions
|
@ -3282,23 +3282,24 @@ requires
|
||||||
self.deg = 0;
|
self.deg = 0;
|
||||||
self.count++;
|
self.count++;
|
||||||
if (self.count == 1) {
|
if (self.count == 1) {
|
||||||
|
that.animate({
|
||||||
|
opacity: 1
|
||||||
|
}, 250);
|
||||||
self.interval = setInterval(function() {
|
self.interval = setInterval(function() {
|
||||||
self.deg = (self.deg + 30) % 360;
|
self.deg = (self.deg + 30) % 360;
|
||||||
update();
|
update();
|
||||||
}, 83);
|
}, 83);
|
||||||
that.animate({
|
|
||||||
opacity: 1
|
|
||||||
}, 250);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
that.stop = function() {
|
that.stop = function() {
|
||||||
self.count--;
|
self.count--;
|
||||||
if (self.count == 0) {
|
if (self.count == 0) {
|
||||||
clearTimeout(self.interval);
|
|
||||||
self.deg = 0;
|
|
||||||
that.animate({
|
that.animate({
|
||||||
opacity: 0
|
opacity: 0
|
||||||
}, 250);
|
}, 250, function() {
|
||||||
|
clearTimeout(self.interval);
|
||||||
|
self.deg = 0;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return that;
|
return that;
|
||||||
|
|
|
@ -103,7 +103,7 @@
|
||||||
"Italy",
|
"Italy",
|
||||||
"Japan",
|
"Japan",
|
||||||
"Spain",
|
"Spain",
|
||||||
"Swizerland",
|
"Switzerland",
|
||||||
"UK",
|
"UK",
|
||||||
"USA"
|
"USA"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue