Open this example in the interactive library
Source code
<style>
.demo {
overflow: hidden;
width: 9rem;
}
.demo img {
transform: scale(1.6);
transform-origin: 60% 30%;
}
</style>
<figure class="demo">
<img
alt="Study in geometric shapes"
width="150"
height="72"
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='72'%3E%3Ccircle cx='80' cy='30' r='20' fill='teal'/%3E%3C/svg%3E"
/>
</figure>