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

Package Sidebar

Install

npm i arko

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • kriskbx