Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/flozz/pavage

Lightweight library to arrange HTML elements in a Waterfall / Pinterest-like column layout
https://github.com/flozz/pavage

Last synced: 21 days ago
JSON representation

Lightweight library to arrange HTML elements in a Waterfall / Pinterest-like column layout

Awesome Lists containing this project

README

        

# Pavage

> Lightweight library to arrange HTML elements in a Waterfall / Pinterest-like column layout

![Example](https://raw.githubusercontent.com/flozz/pavage/master/demo.png)

## Quick Start

To use `pavage`, you just have to make some HTML and then call the `pavage.fromDOM()` function:

```html





...

pavage.fromDOM();

```

* the `pavage` class must be set on each element that will contain item to render with pavage
* the `data-column` attribute defines the number of column that will be displayed (default: 3)
* the `data-spacing` attribute defines the spacing between items (default: 0)