Small typo in code
parent
036c208a84
commit
77b8e4436d
|
@ -83,10 +83,9 @@
|
||||||
var flag,
|
var flag,
|
||||||
len = pth.getTotalLength();
|
len = pth.getTotalLength();
|
||||||
Snap.animate(0, len, function (l) {
|
Snap.animate(0, len, function (l) {
|
||||||
flag = !flag;
|
|
||||||
// Safari bug workaround: forcing redraw
|
// Safari bug workaround: forcing redraw
|
||||||
g.attr({width: 100 + (flag ? .00001 : 0) + "%"});
|
g.attr({width: 100 + (flag = !flag ? 1e-5 : 0) + "%"});
|
||||||
|
//
|
||||||
var dot = pth.getPointAtLength(l);
|
var dot = pth.getPointAtLength(l);
|
||||||
flight.attr({
|
flight.attr({
|
||||||
d: pth.getSubpath(0, l)
|
d: pth.getSubpath(0, l)
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
}, 200, mina.easeout);
|
}, 200, mina.easeout);
|
||||||
setTimeout(animateEach, 200);
|
setTimeout(animateEach, 200);
|
||||||
i++;
|
i++;
|
||||||
};
|
}
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
logo.attr({
|
logo.attr({
|
||||||
|
|
Loading…
Reference in New Issue