//UPDATE: I've made some changes to the Pen, so now everyone can view the solution! Check it out here.
My goal is quite simple in my opinion. I want to create an image that zooms in when you hover over it but doesn't increase in size. I attempted this in a Pen, which you can find by clicking on this link: here
Below is the CSS code I used for the Image:
.image {
width: 100px;
transition: all 0.5s;
}
.image:hover {
width: 120px;
transition: 0.5s;
}
(I only implemented the enlargement animation, as I'm unsure how to achieve the "border" effect)
The button serves as an example, but it does expand slightly upwards. I suspect this is the same issue I'm encountering with the image.