Directory

plastic-aspect-ratio - Vaadin Add-on Directory

A Polymer 3.0 Custom Element Where the Height Depends on the Width plastic-aspect-ratio - Vaadin Add-on Directory
# \ A Polymer 3.0 Custom Element Where the Height Depends on the Width This allows you to set the width in any way, by percentage for example, and still have the container retain its width to height aspect ratio. The element is also available for Polymer 2 - see install instructions below. ## Examples ```HTML ``` Typically you will style a single content item with width:100%, height:100%. ```HTML ``` You don't have to use only a single content item. Anything that could be in a div is fine. ```HTML

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed hendrerit mauris eu ante dignissim porta. Integer non tellus tincidunt, tristique erat vel, pretium nisi.

``` ## Install ### For Polymer 3 Projects `npm i --save plastic-aspect-ratio` ### For Polymer 2 Projects `bower install --save mlisook/plastic-aspect-ratio#^1.0.0` ## Issues and Contributions Please file issues on the github page. Contributions via pull request are certainly welcome and appreciated. ## License MIT