I have the following code:
if (current <= total) { $next.css({opacity: 0.0}) .addClass("active") .animate({opacity: 1.0}, 1000, function() { current -= 1; if (current == 1) { jQuery("#next").animate({opacity: 0}, 500); next_isShowing = false; } if (!prev_isShowing) { jQuery("#prev").animate({opacity: 1.0}, 500); } });
The only thing I really want to move this block of code before is ".animate":
current -= 1; if (current == 1) { jQuery("#next").animate({opacity: 0}, 500); next_isShowing = false; }
Is there a way to take this block of text and βsnapβ it to my current thread?
source share