Sha256: 5c8d9aa673b46e7e9b2e29bc16595e4b29672e80b72da773ff0e2304fa529b17
Contents?: true
Size: 900 Bytes
Versions: 11
Compression:
Stored size: 900 Bytes
Contents
// change layout var isHorizontal = false; function changeLayoutMode( $link, options ) { var wasHorizontal = isHorizontal; isHorizontal = $link.hasClass('horizontal'); if ( wasHorizontal !== isHorizontal ) { // orientation change // need to do some clean up for transitions and sizes var style = isHorizontal ? { height: '80%', width: $container.width() } : { width: 'auto' }; // stop any animation on container height / width $container.filter(':animated').stop(); // disable transition, apply revised style $container.addClass('no-transition').css( style ); setTimeout(function(){ $container.removeClass('no-transition').isotope( options ); }, 100 ) } else { $container.isotope( options ); } }
Version data entries
11 entries across 11 versions & 1 rubygems