jQuery or Vanilla Isotope

Simple

Filter

Layout Mode

Masonry Mode

Blank options

change from 4 columns to 3 columns using percentPosition and columnWidth

horizontalOrder

fitWidth

Reset

fitRows Mode, vertical Mode

fitColumns Mode

Packery Mode

cellsByRow Mode