From a41d6f51960d9f60c28a077e113cfbc418badc81 Mon Sep 17 00:00:00 2001 From: Rouan van der Ende Date: Sun, 16 Feb 2014 19:30:22 +0200 Subject: [PATCH] Fixed slideInRight effect Fix the slideInRight effect to be a mirror of the slideInLeft. The slideInLeft effect actually moves the new image into place, while the slideInRight only revealed the new image with a kind of wipe mask. Now the image slides in like it should. --- jquery.nivo.slider.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jquery.nivo.slider.js b/jquery.nivo.slider.js index 8b0a774..f08acb7 100644 --- a/jquery.nivo.slider.js +++ b/jquery.nivo.slider.js @@ -483,8 +483,10 @@ firstSlice = $('.nivo-slice:first', slider); firstSlice.css({ - 'width': '0px', - 'opacity': '1' + 'width': slider.width()*2, + 'opacity': '1', + 'left': '', + 'right': '0px' }); firstSlice.animate({ width: slider.width() + 'px' }, (settings.animSpeed*2), '', function(){ slider.trigger('nivo:animFinished'); }); @@ -659,4 +661,4 @@ $.fn._reverse = [].reverse; -})(jQuery); \ No newline at end of file +})(jQuery);