There is a slider pictures. When you click on the arrows, ul normally shifts left and right ... That is, when you click on the arrows, the position of ul changes:
$('#vpered').click(function(){ $('ul').css('marginLeft', '-100px'); }); I didn’t write all the code. There are no problems with this, everything works fine.
But when I use the animate method, and click on the arrows, without waiting for the ul shift, it does not shift as it should ...