Directory

← Back

scary-gallery

Element to layout images making best use of available space.

Author

Rating

Popularity

<100

[ This description is mirrored from README.md at github.com/Scarygami/scary-gallery on 2019-05-10 ]

<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.

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

Polymer/polymer#^1.7.0

Released
2017-04-26
Maturity
IMPORTED
License
Other

Compatibility

Framework
Polymer 1.0+
Polymer 2.0+ in 2.0.0
Browser
Browser Independent

Vaadin Add-on Directory

Find open-source widgets, add-ons, themes, and integrations for your Vaadin application. Vaadin Add-on Directory
The channel for finding, promoting, and distributing Vaadin add-ons.
Online