masonry-rows

0.1.4 • Public • Published

masonry-rows

A Custom Element fully inspired by A Lightweight Masonry Solution article.

Live Demo

<script async src="//unpkg.com/masonry-rows"></script>
<!--
  <masonry-rows gap=".5em" min-width="20em">
  Both gap and min-width are by default .5em and 20em
  and exposed as gap or minWidth accessors, reflected
  through el.setAttribute('gap' or 'min-width') too.
  If set as numbers, will be converted as (num + 'px').
-->
<masonry-rows>
  <p>
    Any content is shown as a grid with masonry rows.
  </p>
  <p>
    From paragraphs to images.
  </p>
</masonry-rows>

Readme

Keywords

Package Sidebar

Install

npm i masonry-rows

Weekly Downloads

153

Version

0.1.4

License

ISC

Unpacked Size

25.8 kB

Total Files

8

Last publish

Collaborators

  • webreflection