mirror of
https://github.com/WilliamsNY/contain-element.git
synced 2024-11-21 05:42:32 -05:00
Add a description of the plugin to the README
This commit is contained in:
parent
a4f32cb75a
commit
315f245c9c
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,10 @@
|
|||
|
||||
A JavaScript plugin to contain an element within its parent element.
|
||||
|
||||
## Description
|
||||
|
||||
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`).
|
||||
|
||||
## Features
|
||||
|
||||
* Pure JavaScript with no dependencies
|
||||
|
|
Loading…
Reference in a new issue