Last active
August 29, 2015 13:57
-
-
Save koluku/9410259 to your computer and use it in GitHub Desktop.
jQuery Masonryのカラム構成時における指定の方法
StackOverflowで見つけた解決方法。参考にしたURLが見つからなかったためここに保存
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $container = $(".js-masonry"); | |
$container.masonry("bindResize", { | |
columnWidth: function(containerWidth) { | |
return containerWidth /4; | |
}, | |
itemSelector: ".js-masonry__item" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment