Open simon-heinen opened 10 years ago
whenever I pass a function x in .end(x) its called instantly, can somebody test for example this code:
move(myDiv).duration(10000).ease('in-out').to(Math.random() * 400-200,Math.random() * 400-200).set('opacity', 0.2).scale(0.5).then(function(){ alert("Animation then"); }).end(function(){ alert("Animation done"); });
whenever I pass a function x in .end(x) its called instantly, can somebody test for example this code:
move(myDiv).duration(10000).ease('in-out').to(Math.random() * 400-200,Math.random() * 400-200).set('opacity', 0.2).scale(0.5).then(function(){ alert("Animation then"); }).end(function(){ alert("Animation done"); });