Browse Source

docs : layout-change.js - add logic to stop animated containers. Bug fix from lukeshumard

pull/14/head
David DeSandro 14 years ago
parent
commit
86252e4dc0
  1. 4
      _includes/layout-change.js

4
_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 });

Loading…
Cancel
Save