JSFiddle - React, Tailwind, and code Playground

HTML

<p><input type="button" onclick="animacion()" value="Animar" id="boton"></p>
		<div id="bloque"></div>

CSS

#body {
			
	background-color: #b3d4fc;
			
}
#bloque {

	position: absolute;
	background-color: black;
	width: 200px;
	height: 100px;
	border-radius: 1px;
	box-shadow: 10px 10px 5px #888888;
	left: 1px;
	top: 100px;
}

JavaScript

i=0;

function caja(){
	
	
	i++;
	
	dimension_ancho=["100px","105px","110px","115px","120px","125px","130px","135px","140px","145px","150px","155px","160px","165px","170px","175px","180px","185px","190px","195px","200px"];
	
	dimension_alto=["200px","205px","210px","215px","220px","225px","230px","235px","240px","245px","250px","255px","260px","265px","270px","275px","280px","285px","290px","295px","300px"];
	
	derecha=["2px","4px","6px","8px","10px","12px","14px","16px","18px","20px","22px","24px","26px","28px","30px","32px","34px","36px","38px","40px","42px"];
	
	abajo=["102px","104px","106px","108px","110px","112px","114px","116px","118px","120px","122px","124px","126px","128px","130px","132px","134px","136px","138px","140px","142px"];
	
	color=["white","pink","brown","blue","olive","red","purple","white","pink","white","pink","brown","blue","olive","red","purple","white","pink","purple","white","pink"];
	
	radio=["2px","4px","6px","8px","10px","12px","14px","16px","18px","20px","22px","24px","26px","28px","30px","32px","34px","36px","38px","40px","42px"];
	
	document.getElementById('bloque').style.width=dimension_alto[i];
	document.getElementById('bloque').style.height=dimension_ancho[i];
	document.getElementById('bloque').style.left=derecha[i];
	document.getElementById('bloque').style.top=abajo[i];
	document.getElementById('bloque').style.backgroundColor=color[i];
	document.getElementById('bloque').style.borderRadius=radio[i];
};

function animacion () {

	i = setInterval(caja, 100);
	
}
function animacion () {

	i = setInterval(caja, 100);
	
}

function hola () {
    
    alert ('Este es un alert lanzado con setTimeout');
    
}

setTimeout (hola, 3000);