0.0.1 • Published 7 years ago
responsive-iframe v0.0.1
Basic Responsive iFrames
Provides a zero-configuration method of creating responsive iframes.
Installation
npm
npm install responsive-iframe
yarn
yarn add responsive-iframe
Manually
Usage
npm/webpack/rollup/etc
require('responsive-iframe')
- Embed your iframe, and add a height/width element (this acts as an aspect ratio)
Manually
- Include
responsive-frame.js
into your project - Embed your iframe, and add a height/width element (this acts as an aspect ratio)
Configuration
- If you want to exclude an iframe from resizing, add
.dont-resize
class to your element
0.0.1
7 years ago