Fading in/out a jquery list

后端 未结 5 352
误落风尘
误落风尘 2021-01-27 23:12

I\'m trying to write a jquery function that loops through an unordered list (the ul element having the id \"intro\") and individually fades in and fades out each element. This

5条回答
  •  被撕碎了的回忆
    2021-01-28 00:13

    function startAnimations(){
    
                 $("#intro").hide();
    
                $("#intro li").each(function() {
                     var _this = $(this);
    
                    _this.fadeIn(3000, function(){
                        _this.fadeOut(3000);
    
                    });
    
                });
            }
    

提交回复
热议问题