Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/12/2011, 15:02
Avatar de hackcrack
hackcrack
 
Fecha de Ingreso: abril-2011
Mensajes: 331
Antigüedad: 13 años, 1 mes
Puntos: 9
Problema con hover fade

Tengo un problema con esta propiedad. Tengo un hover que con una imagen al pasar el mouse cambia a otra desvanevciendose con la propiedad fade, la cosa es que si corro el mouse antes que termine la transicion de una imagen a otra, cuando vuelvo a pasar el mouse ya no funciona el efecto, directamente no tiene hover.
Uso Jquery.

Código PHP:
$(document).ready(function() {
// find the div.fade elements and hook the hover event
$('.fadeThis').hover(function() {
// on hovering over find the element we want to fade *up*
var fade = $('> .hover'this);

// if the element is currently being animated (to fadeOut)...
if (fade.is(':animated')) {
// ...stop the current animation, and fade it to 1 from current position
fade.stop().fadeTo(5001);
} else {
fade.fadeIn(500);
}
}, function () {
var 
fade = $('> .hover'this);
if (
fade.is(':animated')) {
fade.stop().fadeTo(5000);
} else {
fade.fadeOut(500);
}
});


__________________
Los mejores juegos de PC gratis en ******