Okay, so I'm trying to do some nice fade out hover animations. Thing is - I have to put all the code inside the div tag (as I don't have access to the css files). I want to use this code for my animation, but I don't know how to modify it so it could work inside div style="..."
img {
    opacity: 1.0;
    transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out;
}
img:hover {
    opacity: 0.5;
    transition: opacity .55s ease-in-out;
    -moz-transition: opacity .55s ease-in-out;
    -webkit-transition: opacity .55s ease-in-out;
} 
 
     
    