admin管理员组文章数量:1345048
I'd like to use this plugin: / with layout mode: meticulous as described on the frontpage. I went through every page of documentation and cannot find how to set it to meticulous instead of masonry layout which is default!
var $container = $('#grid_index');
// initialize
$container.packery({
itemSelector: '.item',
gutter: 0
});
Any ideas?
I'd like to use this plugin: http://packery.metafizzy.co/ with layout mode: meticulous as described on the frontpage. I went through every page of documentation and cannot find how to set it to meticulous instead of masonry layout which is default!
var $container = $('#grid_index');
// initialize
$container.packery({
itemSelector: '.item',
gutter: 0
});
Any ideas?
Share Improve this question asked Sep 18, 2013 at 11:35 user796443user7964431 Answer
Reset to default 12To answer my question directly, layout mode "meticulous" is triggered automatically by setting: columnWidth
and rowHeight
in options.
Like this:
var $container = $('#grid_index');
var pckry = $container.data('packery');
// initialize
$container.packery({
itemSelector: '.item',
gutter: 0,
"columnWidth": 250,
"rowHeight": 250
});
本文标签: javascriptPackeryhow to change layout modeStack Overflow
版权声明:本文标题:javascript - Packery - how to change layout mode? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743745674a2531707.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论