• Hi wil, I don’t seem to get any of the masonry options working at all. My code on the custom masonry function is:

    console.trace();
    var galleries = document.getElementsByClassName(‘gallery-item’);

    for ( var i=0, len = galleries.length; i < len; i++ ) {
    var gallery = galleries[i];
    initMasonry( gallery );
    }
    function initMasonry( container ) {

    var imgLoad = imagesLoaded( container, function() {
    new Masonry( container, {
    itemSelector: ‘.gallery-item’,
    columnWidth:200,
    isAnimated: true,
    animationOptions: {
    duration: 750,
    easing: ‘linear’,
    queue: false }
    });
    });

    }
    I don’t seem to get any of the options working and I can see that the script is loaded and used. No columnWidth applied, no animation…
    Am I missing something?

    https://ww.wp.xz.cn/plugins/jquery-masonry-image-gallery/

The topic ‘columnWidth’ is closed to new replies.