Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 1.14 KB

README.md

File metadata and controls

34 lines (29 loc) · 1.14 KB

<scary-gallery>

Published on webcomponents.org

<scary-gallery> will (try to) layout any of its <scary-image> children to make best use of available space, and rearranges the images, when the size changes.

Sample usage:

<scary-gallery min-height="100">
  <scary-image src="https://lorempixel.com/300/200/"></scary-image>
  <scary-image src="https://lorempixel.com/350/250/"></scary-image>
  <scary-image src="https://lorempixel.com/350/200/"></scary-image>
  <scary-image src="https://lorempixel.com/800/200/"></scary-image>
  <scary-image src="https://lorempixel.com/320/200/"></scary-image>
  <scary-image src="https://lorempixel.com/200/200/"></scary-image>
</scary-gallery>

Disclaimer:

Work in progress, the algorithm to layout the images is far from perfect.