Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/kriskbx/arko
- Owner: kriskbx
- License: mit
- Archived: true
- Created: 2016-06-23T14:22:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-24T13:22:44.000Z (almost 8 years ago)
- Last Synced: 2024-09-30T09:21:19.596Z (about 1 month ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
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