Hi there, nice to be the newest member here
I've got a jQuery question I'd like some help with. I'm trying to get a testimonial to fade out so another one can be selected and take it's place.
I thought these would all run nicely after each other... but that's not the case.Code:function scroller() { //other stuff to do with scroller $('#scrollText').stop(false, false).animate({top: '-100px'}, (3000), function() { /* Animation complete. */ }); $('#scrollText').fadeOut(500, function() { /* Animation complete. */ }); //code to replace testimonial text, and reset top to 0px $('#scrollText').fadeIn(500, function() { /* Animation complete. */ }); }
I've tried various things with the 'Animation complete' sections, and even tried splitting everything up using "setTimeout(replaceTestimonial(), 3000);" etc, but nothing seems to run like I imagined.
Can you please point out where I'm going wrong, or even give a link resolving a similar problem?
Thanks.



Reply With Quote





Bookmarks