mirror of
https://github.com/WilliamsNY/contain-element.git
synced 2024-11-23 06:14:09 -05:00
Adding a demo link
This commit is contained in:
parent
92cd36ce9f
commit
0a0ec21807
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`).
|
||||
|
||||
[Demo](https://github.com/WilliamsNY/contain-element)
|
||||
|
||||
## Features
|
||||
|
||||
* Pure JavaScript with no dependencies
|
||||
|
|
Loading…
Reference in a new issue