JSFiddle - React, Tailwind, and code Playground

HTML

<img src="http://placehold.it/200x200"/>

CSS

img {
     width: 50px;
    -moz-animation: scale 0.5s; /* Firefox */
	-webkit-animation: scale 0.5s; /* Safari and Chrome */
	-o-animation: scale 0.5s; /* Opera */
    animation: scale 0.5s;
}
	@keyframes scale {
		from {
			width:200px;
		}
		to {
			width:50px;
		}
	}
	@-moz-keyframes scale { /* Firefox */
		from {
			width:200px;
		}
		to {
			width:50px;
		}
	}
	@-webkit-keyframes scale { /* Safari and Chrome */
		from {
			width:200px;
		}
		to {
			width:50px;
		}
	}
	@-o-keyframes scale { /* Opera */
		from {
			width:200px;
		}
		to {
			width:50px;
		}
	}
}