Hi,
I am changing the width of the element that serves as the bar and this works. However, I cannot make it animate him in the opposite direction. I tried putting - before bar_width, but to no avail. The width will be dynamically calculated exactly so that I want the direction to go left and not right, as shown below. <------- not ----------->
var bar_width=$(this).css('width') ;
$(this).css('width', '0').animate({ width: bar_width }, queue:false,duration:3500,easing: easing});
source
share