mirror of https://github.com/metafizzy/isotope
David DeSandro
14 years ago
5 changed files with 29 additions and 69 deletions
@ -0,0 +1,14 @@
|
||||
|
||||
// change size of clicked element
|
||||
$container.delegate( '.element', 'click', function(){ |
||||
$(this).toggleClass('large'); |
||||
$container.isotope('reLayout'); |
||||
}); |
||||
|
||||
// toggle variable sizes of all elements
|
||||
$('#toggle-sizes').find('a').click(function(){ |
||||
$container |
||||
.toggleClass('variable-sizes') |
||||
.isotope('reLayout'); |
||||
return false; |
||||
}); |
Loading…
Reference in new issue