diff --git a/_includes/layout-change.js b/_includes/layout-change.js index e473b74..d70630f 100644 --- a/_includes/layout-change.js +++ b/_includes/layout-change.js @@ -11,6 +11,10 @@ var style = isHorizontal ? { height: '80%', width: $container.width() } : { width: 'auto' }; + // stop any animation on container height / width + if ( $container.is(':animated') ) { + $container.stop(); + } $container.addClass('no-transition').css( style ); setTimeout(function(){ $container.removeClass('no-transition').isotope({ layoutMode : mode });