I have a color block and every time I press on it I want it to shrink.
$('#blue').click(function(){
$(this).animate({width: '90%'},1000);
});
But it goes by the right side. How do I make it to shrink on the left side?
CSS:
#blue{
height:250px;
width:500px;
background-color:blue;
}
html:
<div id='blue'></div>