detener animaciones

2 views
Skip to first unread message

Almacenamiento Almacenamiento

unread,
Nov 5, 2011, 2:39:31 PM11/5/11
to jque...@googlegroups.com, jquery-e...@googlegroups.com
Me surge cierta duda...
Estoy intentando hacer una animacion sencilla estilo slider, pero cuando elijen varios elementos se encolan y no termina la animacion hasta q se hagan todas x las q se pasó el mouse.

Ej de mi code.
jQuery.noConflict();
(function($){

function slider(){
$("#slider li").hover(
function(){
//$(this).index()
$(this).animate({'width':350}, 200);
// $("#slider li").not("eq("+$(this).index()+")").stop();
// $(this).animate({'width':350},{queque:false});
},
function(){
$(this).animate({'width':90}, 200);
// $(this).animate({'width':90}, {queque:false});
}
);
}

$(document).ready(function(){
slider();
});
})(jQuery);

Intente de las maneras que tengo comentado, pero no me funcaron, 
Reply all
Reply to author
Forward
0 new messages