Masonry does not work with html added after loading (using js)

46 views Asked by At

i add html to the page from json file using append and then try to build the correct grid using masonry

wrapper = `
    //here html             
`;
$('#service_its').append( wrapper );
jQuery('.masIts').masonry('layout');    //not working

an attempt to do the same through the console does not lead to the correct positioning of the elements, but it seems to work, returns the elements

0

There are 0 answers