Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #23573
| From | Mattias Campe <mattiaspuntcampe@geeeemeil.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | jQuery: fadeIn/out + count |
| Date | 2014-03-12 16:09 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <lfptbf$b5m$1@dont-email.me> (permalink) |
Hello
I got multiple paragraphs and some of them need to have a fadeIn, some a
fadeOut. After that code I want to count the paragraphs that are still
visible.
The fadeIn or fadeOut works as I expect, but not the counting. I guess
that is because the animation is still busy, while the counting already
starts. A kind of "parallel" processing.
Would anybody know if that is the cause and/or a solution for my problem?
if (jQuery('input#' + geg).is(":checked")){
jQuery("p." + geg).fadeIn();
} else {
jQuery("p." + geg).fadeOut();
}
var nSr = eval(jQuery('p.sr:visible').length); // BUG?
Kind regards
Mattias
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
jQuery: fadeIn/out + count Mattias Campe <mattiaspuntcampe@geeeemeil.com> - 2014-03-12 16:09 +0100
Re: jQuery: fadeIn/out + count Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2014-03-12 17:50 +0100
Re: jQuery: fadeIn/out + count Mattias Campe <mattiaspuntcampe@geeeemeil.com> - 2014-03-12 21:17 +0100
Re: jQuery: fadeIn/out + count Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2014-03-12 18:04 -0300
Re: jQuery: fadeIn/out + count Mattias Campe <mattiaspuntcampe@geeeemeil.com> - 2014-03-13 20:22 +0100
Re: jQuery: fadeIn/out + count Christoph Michael Becker <cmbecker69@arcor.de> - 2014-03-13 02:05 +0100
Re: jQuery: fadeIn/out + count Mattias Campe <mattiaspuntcampe@geeeemeil.com> - 2014-03-13 20:31 +0100
csiph-web