The following example shows how to scale an element on hover. Two boxes are shown, one with a single scale
value which scales the element along both axes. The second box has two scale
values which scales the element along the X and Y axes independently.
HTML
<div class="box" id="box1">single value</div>
<div class="box" id="box2">two values</div>
CSS
.box {
float: left;
margin: 1em;
width: 7em;
line-height: 7em;
text-align: center;
transition: 0.5s ease-in-out;
border: 3px dotted;
}
#box1:hover {
scale: 1.25;
}
#box2:hover {
scale: 1.25 0.75;
}
Result