jQuery fadeAll
$.fn.fadeAll = function (ops) {
var
o = $.extend({
delay: 500,
speed: 500,
ease: 'swing' // Other requires easing plugin
}, ops),
$el = this
for (var i=0, d=0, l=$el.length; i<l; i++, d+=o.delay)
$el.eq(i).delay(d).fadeIn(o.speed, o.ease);
return $el
}
Written by Cedric Ruiz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#