Wrapper for the amazing masonry grid. (https://masonry.desandro.com/)
<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>
$ bower install --save daKmoR/grain-masonry
Import the package.
<link rel="import" href="/bower_components/grain-masonry/grain-masonry.html">
For more information, see the API documentation.
First, make sure you have the Polymer CLI installed.
- View the Element via
polymer serve
- Run tests via
polymer test