Edit in JSFiddle

function loopBoxAnimation(){
	$("#animate-box").animate(
		{
			width: "100px",
			height: "100px"
		}, 
		2000,
		function(){
			$(this).removeAttr("style");
			loopBoxAnimation();
		}
	);
}

$("#start-animation-button").click(loopBoxAnimation);
#animate-box{
	width: 10px;
	height: 10px;
	background-color: black;
}
<div id="animate-box"></div>
<button type="button" id="start-animation-button">
Alusta ts├╝kkelanimatsiooniga
</button>