JSFiddle - React, Tailwind, and code Playground

HTML

<svg width="500" height="650" >
<rect ry=5 rx=0 x=150 y=100 width=90 height=100 style="fill:red">
    <animateColor attributeName="fill" attributeType="CSS" 
		from="#ffd700" 
		to="lightblue"  
		dur="5s"
	/> 
</rect>



</svg>