Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kriskbx/arko

Automagically make embeds responsive. (vanilla JS)
https://github.com/kriskbx/arko

Last synced: about 1 month ago
JSON representation

Automagically make embeds responsive. (vanilla JS)

Awesome Lists containing this project

README

        

# 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