1.3.1 • Published 6 years ago

waterfall-light v1.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

A straightforward waterfall component with venilla javascript.

Getting started

npm install waterfall-light

After import this lib, you can init an instance:

new Waterfall({
    data: [
        {
            src: ""
        }
    ],
    colNum: 5, //which means 20% of total width
    wrapperClass: "wfl-wrapper", // the element class for the div in html
    containerClass: "wfl-image-container"
});

Your html file should have the div:

<div class="wfl-wrapper"></div>

Don't forget to import the scss file:

import 'waterfall.scss'
1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago