Browse Source

docs : layout-change concise stoppage of animation

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

5
_includes/layout-change.js

@ -12,9 +12,8 @@
{ height: '80%', width: $container.width() } :
{ width: 'auto' };
// stop any animation on container height / width
if ( $container.is(':animated') ) {
$container.stop();
}
$container.filter(':animated').stop();
$container.addClass('no-transition').css( style );
setTimeout(function(){
$container.removeClass('no-transition').isotope({ layoutMode : mode });

Loading…
Cancel
Save