visionmedia / move.js

CSS3 backed JavaScript animation framework
http://visionmedia.github.com/move.js/
4.72k stars 686 forks source link

function animationEndListener passed in end(animationEndListener) is called instantly #43

Open simon-heinen opened 10 years ago

simon-heinen commented 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"); });