/grain-masonry

Primary LanguageHTMLMIT LicenseMIT

Published on webcomponents.org Polymer Version

<grain-masonry>

Wrapper for the amazing masonry grid. (https://masonry.desandro.com/)

Demo

<grain-masonry transition-duration="250">
  <article style="height: 30px;">Power</article>
  <article style="height: 50px;">To</article>
  <article style="height: 25px;">The</article>
  <article style="height: 35px;">People</article>
  <article style="height: 40px;">!</article>
</grain-masonry>
<style>
  article {
    background: #36abcc; width: 29%; margin: 2%; color: #fff; display: flex; align-items: center; justify-content: center;
  }
</style>

Installation

$ bower install --save daKmoR/grain-masonry

Getting Started

Import the package.

<link rel="import" href="/bower_components/grain-masonry/grain-masonry.html">

For more information, see the API documentation.

Working on the Element

First, make sure you have the Polymer CLI installed.

  • View the Element via polymer serve
  • Run tests via polymer test