Looking to utilize CSS3 animations to shrink an image size when hovered over. Here's what I currently have:
#logo-icon img { width: 80px; };
#logo-icon img:hover { width: 50px; transition: width 0.2s; };
However, the transition seems to be from 0px to 50px instead of 80px to 50px when the mouse hovers over the image.
Any way to make it so the transition goes from 80px to 50px instead?