In Masonry, a function type isn't a permitted value for the columnWidth
property.
Try instead to:
- Pass a CSS selector (e.g.,
.grid_box
) as thecolumnWidth
property. - In CSS, add the selector to the appropriate percentage width of its parent container (e..g,
.grid_box{ width: 20%; }
). - To your HTML, add an empty
<div class="grid_box"></div>
to the container.