(function($) { $.fn.cycle.transitions.scrollUp = function(a, b, c) { a.css('overflow', 'hidden'); c.before.push($.fn.cycle.commonReset); var h = a.height(); c.cssBefore = { top: h, left: 0 }; c.cssFirst = { top: 0 }; c.animIn = { top: 0 }; c.animOut = { top: -h} }; $.fn.cycle.transitions.scrollDown = function(a, b, c) { a.css('overflow', 'hidden'); c.before.push($.fn.cycle.commonReset); var h = a.height(); c.cssFirst = { top: 0 }; c.cssBefore = { top: -h, left: 0 }; c.animIn = { top: 0 }; c.animOut = { top: h} }; $.fn.cycle.transitions.scrollLeft = function(a, b, c) { a.css('overflow', 'hidden'); c.before.push($.fn.cycle.commonReset); var w = a.width(); c.cssFirst = { left: 0 }; c.cssBefore = { left: w, top: 0 }; c.animIn = { left: 0 }; c.animOut = { left: 0 - w} }; $.fn.cycle.transitions.scrollRight = function(a, b, c) { a.css('overflow', 'hidden'); c.before.push($.fn.cycle.commonReset); var w = a.width(); c.cssFirst = { left: 0 }; c.cssBefore = { left: -w, top: 0 }; c.animIn = { left: 0 }; c.animOut = { left: w} }; $.fn.cycle.transitions.scrollHorz = function(e, f, g) { e.css('overflow', 'hidden').width(); g.before.push(function(a, b, c, d) { $.fn.cycle.commonReset(a, b, c); c.cssBefore.left = d ? (b.cycleW - 1) : (1 - b.cycleW); c.animOut.left = d ? -a.cycleW : a.cycleW }); g.cssFirst = { left: 0 }; g.cssBefore = { top: 0 }; g.animIn = { left: 0 }; g.animOut = { top: 0} }; $.fn.cycle.transitions.scrollVert = function(e, f, g) { e.css('overflow', 'hidden'); g.before.push(function(a, b, c, d) { $.fn.cycle.commonReset(a, b, c); c.cssBefore.top = d ? (1 - b.cycleH) : (b.cycleH - 1); c.animOut.top = d ? a.cycleH : -a.cycleH }); g.cssFirst = { top: 0 }; g.cssBefore = { left: 0 }; g.animIn = { top: 0 }; g.animOut = { left: 0} } })(jQuery);
