Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

kriskbx/arko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Automagically make embeds responsive. (vanilla JS)

Resources

License

Stars

Watchers

Forks

Packages

No packages published