Ecosyste.ms: Awesome

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

https://github.com/breakzplatform/responsive-embed

:tv: A Polymer element for responsive embeds
https://github.com/breakzplatform/responsive-embed

Last synced: about 2 months ago
JSON representation

:tv: A Polymer element for responsive embeds

Lists

README

        

# <responsive-embed>

A [Polymer](http://polymer-project.org) element for responsive embeds

> Maintained by [Joselito Júnior](https://github.com/joselitojunior1).

## Demo

> [Check it live](https://joselito.ninja/responsive-embed/).

## Installation

Install using [Bower](http://bower.io):

```shell
$ bower i responsive-embed -S
```

or via [npm](http://npmjs.com):
```shell
$ npm i responsive-embed
```

## Usage

1. Import Web Components' polyfill (webcomponents.js)

```html

```

2. Import Custom Element:

```html

```

3. Start using it!

```html



```

## Options

Attribute | Options | Default | Description
--- | --- | --- | ---
`ratio` | `1:1`, `4:3`,`16:9`, `21:9` | `16:9` | Aspect ratio of the internal content

## Example:

```html

```

## License

[Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)