Swiper.prototype.plugins.fade = function(swiper,params) { var slides, wrapperSize, slideSize, initialized; var isH = swiper.params.mode == 'horizontal'; if(!params) return; /*========================= Default Parameters ===========================*/ var defaults = { } params = params || {}; for (var prop in defaults) { if (! (prop in params)) { params[prop] = defaults[prop] } } function checkTransForm() { 'use strict'; var el = document.body; var es = el.style; var transform = ['webkitTransform','MsTransform','msTransform','MozTransform','OTransform','transform']; for(var i=0; i= slideMaxWidth) { slideMaxWidth = slideWidth; } if (slideHeight >= slideMaxHeight) { slideMaxHeight = slideHeight; } } swiper.wrapper.style.height = slideMaxHeight + 'px'; swiper.container.style.height = slideMaxHeight + 'px'; swiper.wrapper.style.width = slideMaxWidth + 'px'; swiper.container.style.width = slideMaxWidth + 'px'; } function fadeSlide (transform) { var transform = transform || {x:0, y:0, z:0}; for (var i=0; i