Sha256: 3a39d7c61b23537013a8acb7b63ea1ae93330c47bca192770b6806cac96dfe59
Contents?: true
Size: 1.44 KB
Versions: 19
Compression:
Stored size: 1.44 KB
Contents
/*! ie-fade transition plugin for Cycle2; version: 20121120 */ (function($) { "use strict"; function cleartype(before, opts, el) { if ( before && el.style.filter ) { opts._filter = el.style.filter; try { el.style.removeAttribute('filter'); } catch(smother) {} // handle old opera versions } else if ( !before && opts._filter ) { el.style.filter = opts._filter; } } $.extend($.fn.cycle.transitions, { fade: { before: function( opts, curr, next, fwd ) { var css = opts.API.getSlideOpts( opts.nextSlide ).slideCss || {}; opts.API.stackSlides( curr, next, fwd ); opts.cssBefore = $.extend(css, { opacity: 0, display: 'block' }); opts.animIn = { opacity: 1 }; opts.animOut = { opacity: 0 }; cleartype( true, opts, next ); }, after: function( opts, curr, next ) { cleartype( false, opts, next ); } }, fadeout: { before: function( opts , curr, next, fwd ) { var css = opts.API.getSlideOpts( opts.nextSlide ).slideCss || {}; opts.API.stackSlides( curr, next, fwd ); opts.cssBefore = $.extend(css, { opacity: 1, display: 'block' }); opts.animOut = { opacity: 0 }; cleartype( true, opts, next ); }, after: function( opts, curr, next ) { cleartype( false, opts, next ); } } }); })(jQuery);
Version data entries
19 entries across 19 versions & 2 rubygems