Support » Plugin: BJ Lazy Load » documentation: lazyloaded event (isotope/masonry May)

  • thomaswp

    (@thomaswp)



    I wanted to integrate this plugin with isotope, so i needed the lazyloaded event to relayout the isitope grid to prevent overlapping images. Your code already contained this event, but it might be helpfull for others to add it to the FAQ or make some documentation on the events that are fired, to provide some pointers on integration with other JS libs:

    var $grid = $('.grid').isotope({
        // options
        itemSelector: '.item',
        layoutMode: 'masonry',
        masonry: {
            columnWidth: '.item'
        }
    });
    
    $( ".lazy" ).on( "lazyloaded", function( event ) {
        $grid.isotope('layout');
    });
  • The topic ‘documentation: lazyloaded event (isotope/masonry May)’ is closed to new replies.