Isolde
Isolde is a lightweight, flexible, and responsive javascript plugin allow you to filter elements from a "masonry" grid.
Quick start
Install
This package can be installed with:
npm install isolde
Or download the latest release.
Load
;; const ijs = ;
Usage
- Create links (a, div, etc.) that have the attribute
data-isolde-link
with an identification value corresponding to a family (ex: food, development, etc.). - Wrap your items with blocks (li, div, etc.) that have the attribute
data-isolde-el
with an identification value corresponding to their family. - Wrap your blocks with a container (ul, div, etc.) that have a className
class="isolde-default"
and an idid="isolde"
.
<!-- 1st step --> [...] [...] [...] <!-- 3st step --> <!-- 2nd step --> [...] [...] [...]