plastic-aspect-ratio - Vaadin Add-on Directory
A Polymer 3.0 Custom Element Where the Height Depends on the Width# \
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
```
## 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
GitHub HomepageLorem ipsum dolor sit amet, consectetur adipiscing elit. Sed hendrerit mauris eu ante dignissim porta. Integer non tellus tincidunt, tristique erat vel, pretium nisi.
Issue tracker
Online Demo
Documentation
View on NPM
View on GitHub
plastic-aspect-ratio version 1.0.0
### Dependencies
* polymer#Polymer/polymer#^2.0.2
plastic-aspect-ratio version 2.0.0
### Dependencies
* @polymer/polymer#^3.0.0
plastic-aspect-ratio version 2.0.1
### Dependencies
* @polymer/polymer#^3.0.0