Permalink
Browse files

Made animated to '0' instead of removing top/left. It seemed less jum…

…py when we want to stop and restart animation.
  • Loading branch information...
thomasyip committed Apr 30, 2011
1 parent 3a4b05b commit 5330dd014c5275e7859ba139d7097ed3eefc535a
Showing with 1 addition and 1 deletion.
  1. +1 −1 jquery.quicksand.js
View
@@ -337,7 +337,7 @@ Github site: http://github.com/razorjack/quicksand
position: 'relative', top: (animationQueue[i].style.top - offset.top),
left: (animationQueue[i].style.left - offset.left)});
- destElement.animate({top: "", left: ""}, options.duration, options.easing, postCallback);
+ destElement.animate({top: "0", left: "0"}, options.duration, options.easing, postCallback);
} else {
animationQueue[i].element.animate(animationQueue[i].animation, options.duration, options.easing, postCallback);
}

0 comments on commit 5330dd0

Please sign in to comment.