Jquery Stop Fadein / Fadeout

后端 未结 5 870
走了就别回头了
走了就别回头了 2020-12-08 08:00

This is a fairly easy one, but I cant seem to figure it out.

Basically I have a jquery hover that fades in a div and fades out the other upon hover.

When I

5条回答
  •  伪装坚强ぢ
    2020-12-08 08:21

    If you have this thing:

    $("#frase1").fadeIn(5000, function(){
       $("#frase2").fadeIn(10000, function(){
          $("#frase3").fadeIn(15000, function(){
    
          });
      });
    });
    

    all right, you must use this instruction to reset fadeIn or other event in queue:

    $("#frase1").stop(false,true, true);
    $("#frase2").stop(false,true, true);
    $("#frase3").stop(false,true, true);
    

提交回复
热议问题