Questo dovrebbe funzionare per voi! http://jsfiddle.net/L7XCD/1/
Usiamo la grande documentazione di Mozilla per spiegare questo:
Transition rovide a way to control the speed of animation changes to CSS properties. Instead of having the animation changes take effect instantly, you can transition the property changes over a specified time period.
Inoltre abbiamo usato le funzioni di temporizzazione di transizione (facilità, lineare, facile-in, easy-out, facile-in- out)
Timing functions determine how intermediate values of the transition are calculated. The timing function can be specified by providing the graph of the corresponding function, as defined by four points defining a cubic bezier
CCS markup:
img {
opacity: 0.6;
transition: opacity 1s ease-in-out;
-moz-transition: opacity 1s ease-in-out;
-webkit-transition: opacity 1s ease-in-out;
}
img:hover {
opacity: 1.0;
transition: opacity .55s ease-in-out;
-moz-transition: opacity .55s ease-in-out;
-webkit-transition: opacity .55s ease-in-out;
}
Dal momento che stava usando l'out facilità-in-transizione, ho pensato che fosse meglio usare la stessa funzione di transizione.
Per ulteriori informazioni, controllare il documentation here
Speranza che aiuta!
Uomo cheers ha funzionato :)! – user1506962
Prego! – Luis
@ user1506962 Se questo ti ha aiutato, accetta –