jQuery Animation, Chaining, .each() and .animate() (or fadeIn() and fadeOut())

前端 未结 4 1131
伪装坚强ぢ
伪装坚强ぢ 2021-02-03 15:20

I\'m having a bit of a trouble trying to figure this out today, i want to make 5 items inside my DOM (which is listed under the same attribute element, $(\'.elements\')) fade in

4条回答
  •  星月不相逢
    2021-02-03 15:23

    You can add a callback

    offical doc :

    ('#clickme').click(function() {
      $('#book').fadeOut('slow', function() {
        // Animation complete.
      });
    });
    

    and call the same function with i++ et $('.elements').eq(i)

    http://jsfiddle.net/dFnNL/

提交回复
热议问题