/* Split Screen by Pixelarity pixelarity.com | hello@pixelarity.com License: pixelarity.com/license */ (function() { "use strict"; // Methods/polyfills. // canUse window.canUse=function(p){if(!window._canUse)window._canUse=document.createElement("div");var e=window._canUse.style,up=p.charAt(0).toUpperCase()+p.slice(1);return p in e||"Moz"+up in e||"Webkit"+up in e||"O"+up in e||"ms"+up in e}; // classList | (c) @remy | github.com/remy/polyfills | rem.mit-license.org !function(){function t(t){this.el=t;for(var n=t.className.replace(/^\s+|\s+$/g,"").split(/\s+/),i=0;i= $images.length) pos = 0; // Swap top images. $images[lastPos].classList.remove('top'); $images[pos].classList.add('visible'); $images[pos].classList.add('top'); // Hide last image after a short delay. window.setTimeout(function() { $images[lastPos].classList.remove('visible'); }, settings.delay / 2); }, settings.delay); })(); })();