Monday, 15 April 2013

jquery - .delay doesn't seem to delay .fadeOut/.fadeIn -



jquery - .delay doesn't seem to delay .fadeOut/.fadeIn -

i'm having issue next line of code.

$("#chicken").delay(scrolllen).fadeout(0).removeclass("flipped").css({ left: 900 + "px" , top : 2370 + "px"}).fadein(0).animate({ left: 1500 + "px" , top : 2370 + "px"}, 5000, 'linear');

so i'm having other animations happen. take scrolllen have delay waits end of animation. item house vanish is. problem is, .fadeout occuring see item vanish. there way accomplish this?

http://jsfiddle.net/8daqz/

here's fiddle: http://jsfiddle.net/kqwrm/1/ grr, hate code requirement

while code animation reddish square, think meant sort of greenish square (still, doing fadeout , fadein simultaneously doesn't have much effect).

now, question - want happen?

jquery delay

No comments:

Post a Comment