arko

1.0.1 • Public • Published

arko

Super simple and ultra lightweight vanilla JS library that detects embeds like iframe/embed or object tags and makes them responsive.

Usage

  1. Include the CSS file in your build-script
  2. Install and use arko:
npm install arko
var options = {};

var arko = require('arko');
new arko(options);

Available Options

{
    selectors: [
        'embed',
        'object',
        'iframe'
    ],
    classNames: {
        active: 'is-responsive',
        container: 'embed-container'
    }
}

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i arko

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • kriskbx