JSFiddle - React, Tailwind, and code Playground
HTML
<div id="container">
<div id="content">
<img src="http://critterbabies.com/wp-content/gallery/kittens/happy-kitten-kittens-5890512-1600-1200.jpg" style="width: 400px; height: 400px;" />
<!-- Content here -->
</div>
</div>
CSS
#container {
width: 600px;
height: 600px;
top: 100px;
left: 100px;
position: absolute;
overflow: auto; // Or hide or scroll or what you prefer
}
#content {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
background-color: gray;
}
#content:hover {
transform: scale(2) translate(25%, 25%);
}