1.1.1 • Published 5 years ago

js-responsive-waterfall v1.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago
  1. This is a js function includes css + div + promise that contains waterfall flow layout
  2. load item that includes image(promise) one by one, pass if image onerror
  3. Simple to use pass a params data to function waterfall
  4. Responsive layout mobile pc pad
  5. If your browser doesn't support promise, please instal promise-polyfill

Installation

npm install js-responsive-waterfall --save
import { waterfall } from 'js-responsive-waterfall'
<script src="https://unpkg.com/js-responsive-waterfall@1.0.8/dist/waterfall.min.js"></script>

Usage

<ul id="container"></ul>

let list = [{ url: 'demo.png' }];
waterfall(list, 'container');

Customize configuration

See Configuration Reference.

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago