skeets.iframe-resize
v1.0.14
Published
auto resize iframe so that it fits content
Downloads
11
Readme
skeets.iframe-resize
Make iframe resize itself to fit content
Install
npm install skeets.iframe-resize
(requires jQuery)
Usage
Call this function with your iFrame
element:
iFrameResize($("iframe"), options);
Options
The following are all optional.
direction
- Set to "up"
to have the iFrame expand up instead of down.
container
- Required if the direction
is "up"
. Set to the selector of the parent element that scrolls.