Moved the transition css property from img:hover to img. This allows the transition to occur when the cursor hover either on or off the images.