From fb67fe7e26d52753ed218232dca150ad6582ea9c Mon Sep 17 00:00:00 2001 From: oxymor0n Date: Mon, 29 Dec 2014 02:52:00 -0500 Subject: [PATCH] Fix bug: non-responsive moveFromBottom caption class moveFromBottom's animate function doesn't set {top:"auto", bottom:0} at the end of the animation --- scripts/camera.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/camera.js b/scripts/camera.js index daddaaa..ddb4d41 100644 --- a/scripts/camera.js +++ b/scripts/camera.js @@ -1892,7 +1892,9 @@ }); } else if(tClass.indexOf("moveFromBottom") != -1) { t.css({'top':h+'px','bottom':'auto'}); - t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'top':pos.top},(time/lMoveInContent)*0.15,easeMove); + t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'top':pos.top},(time/lMoveInContent)*0.15,easeMove,function(){ + t.css({top:'auto',bottom:0}); + }); } else if(tClass.indexOf("fadeFromLeft") != -1) { t.animate({opacity:0},0).css({'left':'-'+(w)+'px','right':'auto'}); t.css('visibility','visible').delay((time/lMoveInContent)*(0.1*(ind-1))).animate({'left':pos.left,opacity:1},(time/lMoveInContent)*0.15,easeMove); @@ -2269,4 +2271,4 @@ elem.removeClass('paused'); } } -})(jQuery); \ No newline at end of file +})(jQuery);