S
S
Svetlana Galenko2020-04-20 16:59:16
css
Svetlana Galenko, 2020-04-20 16:59:16

Why does the masonry grid work partially?

Why did the first elements work and the blocks were placed correctly, while the rest did not?
5e9dace0e4a8f676871660.png

var $container = $('.masonry-container');
$container.imagesLoaded( function() {
  $container.masonry({
    columnWidth: ".image-box",
    itemSelector: ".image-box",
  });
  $(".image-box").imagefill();
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-04-20
@swallow_97

Vanguems...:
1. The last elements in the new div.
2. Somewhere in the console you got an exception, but you didn't show it to us.
Still, I'm leaning towards the first one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question