From a9ab14eb91f2a99f524505d1caa4b434f0ccc0e2 Mon Sep 17 00:00:00 2001 From: maxrip Date: Tue, 23 Aug 2011 06:02:01 +0300 Subject: [PATCH] add effect 'slideInLeftRight', animate left or right depending on the direction --- jquery.nivo.slider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.nivo.slider.js b/jquery.nivo.slider.js index 7cec5d6..1a38add 100644 --- a/jquery.nivo.slider.js +++ b/jquery.nivo.slider.js @@ -369,7 +369,8 @@ vars.randAnim = anims[Math.floor(Math.random()*(anims.length))]; if(vars.randAnim == undefined) vars.randAnim = 'fade'; } - + //effect 'slideInLeftRight' + if(settings.effect=="slideInLeftRight"){if(nudge=="next"){vars.randAnim="slideInLeft"}else{vars.randAnim="slideInRight"}}; //Run effects vars.running = true; if(settings.effect == 'sliceDown' || settings.effect == 'sliceDownRight' || vars.randAnim == 'sliceDownRight' ||