Skip to the content.

πŸ— stratum.js β€” Masonry Grid Library

Current stable version 1.0.4

This project is independent of any other packages. That’s why it’s light weight and is only 1.7KiB for production version.

πŸ“ Table of contents

πŸ“₯ Installation

With npm

npm i stratum.js

or download the latest statum.min.js version

Include stratum.js in your page:

 <script src="../dist/stratum.min.js"></script>

πŸš€ Usage

You can create a grid using stratum() function. It gets object as parameter with three options:

padding:

columns:

smart:

Notice: Using this option script will set grid items in not right order.

If you need to add one or a few grid elements and it has to be invisible then just specify display: none; or add class with this CSS rule to this block.

Code and documentation copyright 2018. Code released under the MIT License.

πŸ•΅πŸ» Changes history