Public Voice Network
- What are you listening to… 41724172
- Shit QBNers Say 118118
- Park Slope 22
- The Elder Scrolls V: Skyr… 7676
- Your Last Concert 373373
- Steve Jobs FBI file 55
- Pic of the Day 5937159371
- Vid of the Day 1096010960
- ♥ Things girls like ♥ 9696
- AE shadows won't work 99
- Suggest a good movie... 935935
- Shit QBNers think 6464
- Politics 1759717597
- Chick of the Day 1431414314
- Skateboarding. 598598
- intern -> job 2020
- TYPO San Francisco 44
- Shit Photographers Say 44
- Trailer Of The Day 388388
- Skillz of the day 2121
- Smart Phone #2 88
- Show some recent work 47664766
- QBN+ Challenge 26 4343
- the gif animation thread 1132111321
jQuery fade-in 55 Responses
Last post: 1 year, 5 months ago | Thread started: Sep 2, 10, 12:54 a.m.
- Continuity
Can any one let me know - or point me to a good tute - that would allow me to fade divs in onLoad sequentially usng jQuery? The thing is the container divs that I want to fade in all have the same class name in the CSS and mark-up, so I'm not sure how I can accomplish this.
Thanks, Queue-Beaners.
- Sep 2, 10, 12:54 a.m. – Permalink
- spraycanII
use a call back
like:
$(div div.div_class:eq(0)).fadeIn(100, function(){
$(div div.div_class:eq(1)).fadeIn(100, function(){
etc...
}
})

- Dog-earSep 2, 10, 2:42 a.m. – Permalink
- Continuity
I ended up doing it like so:
$(function(){
var delay = 100;
$(".folioProject").each(function...
var fade = $(this);
showItem(fade,delay);
delay += 250;
});});
function showItem($o,n) {
setTimeout(function() {
$o.fadeIn(500);
}, n);
}

- Dog-earSep 2, 10, 6:14 a.m. – Permalink


