mirror of
https://github.com/WilliamsNY/contain-element.git
synced 2024-11-24 22:51:26 -05:00
Adding a demo link
This commit is contained in:
parent
f59b874962
commit
21973f23ad
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@ A JavaScript plugin to contain an element within its parent element.
|
||||||
|
|
||||||
The plugin scales an element to the minimum size required for it to be completely contained within its parent, and retains its original aspect ratio by cropping portions that don't fit based on its vertical and horizontal alignment (by default both are set to: `middle`).
|
The plugin scales an element to the minimum size required for it to be completely contained within its parent, and retains its original aspect ratio by cropping portions that don't fit based on its vertical and horizontal alignment (by default both are set to: `middle`).
|
||||||
|
|
||||||
|
[Demo](https://github.com/WilliamsNY/contain-element)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* Pure JavaScript with no dependencies
|
* Pure JavaScript with no dependencies
|
||||||
|
|
Loading…
Reference in a new issue