what does this symbol mean in this perticular case?
you can see "-=" before "+" symbol in this statemnt, i know
x -= y means
x = x - y
but here why this symbol is used though if remove the symbol also iam getting the same result.. pls tell me why this ymbol is used?
- $(this).animate({'left':'-=' + scrollAmount}, 'slow');
actually this is a thumnile scroller code
- $('#photos_inner').toggle(function() {
- var scrollAmount = $(this).width() - $(this).parent().width();
- $(this).animate({'left':'-=' + scrollAmount}, 'slow');
- }, function() {
- $(this).animate({'left':'0'}, 'slow');
- });