jquery-cycle2-ibe
Version:
Cycle2 is a versatile slideshow plugin for jQuery built around ease-of-use. It supports a declarative initialization style that allows full customization without any scripting.
16 lines (13 loc) • 541 B
JavaScript
/*! scrollVert transition plugin for Cycle2; version: 20140128 */
(function($) {
;
$.fn.cycle.transitions.scrollVert = {
before: function( opts, curr, next, fwd ) {
opts.API.stackSlides( opts, curr, next, fwd );
var height = opts.container.css('overflow','hidden').height();
opts.cssBefore = { top: fwd ? -height : height, left: 0, opacity: 1, display: 'block', visibility: 'visible' };
opts.animIn = { top: 0 };
opts.animOut = { top: fwd ? height : -height };
}
};
})(jQuery);