Closed emicoma closed 8 years ago
I tried this way too :
$(function() { $(".free-wall").each(function() { var wall = new Freewall(this); wall.reset({ selector: '.brick', animate: true, cellW: 200, cellH: 'auto', onResize: function () { wall.fitWidth(); } }); wall.container.find('.brick img').load(function () { wall.fitWidth(); }); } });
no success either..
solution :
jQuery(function ($) {
$(".free-wall").each(function() {
var wall = new Freewall(this);
wall.reset({
selector: '.brick',
animate: true,
cellW: 200,
cellH: 'auto',
onResize: function() {
wall.fitWidth();
}
});
wall.container.find('.brick img').load(function() {
wall.fitWidth();
});
});
});
Hi I want to have several pinterest layout on 1 page, not tested, only following each other. Could you please help me with that ? i want something like that
this is working but beginner in javascript, i did not succeed to create functionnal code using :
$(".free-wall").each(function()
All ideas welcome.. Thanks