I've dedicated countless hours to uncovering a solution that can be achieved using only CSS. My goal is to create an animation on a div element where its height and width decrease uniformly when hovered over.
<div class="a"></div>
Above you'll see a basic div element with the following CSS styling:
.a {
width: 350px;
height: 350px;
background: #000;
margin: 100px 0 0 400px;
transition: all 2s linear;
position:fixed;
}
The objective is to shrink both the height and width of the element from the center upon hover, utilizing CSS exclusively.