<responsive-embed>
A Polymer element for responsive embeds
Maintained by Joselito Júnior.
Demo
Installation
Install using Bower:
$ bower i responsive-embed -S
Usage
-
Import Web Components' polyfill (webcomponents.js)
-
Import Custom Element:
-
Start using it!
<!-- your media content -->
Options
Attribute | Options | Default | Description |
---|---|---|---|
ratio |
1:1 , 4:3 ,16:9 , 21:9 |
16:9 |
Aspect ratio of the internal content |
Example: