Permalink
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (36 sloc) 1.79 KB
<!--
#### Introduction
Embed Vine videos in your AMP HTML files.
-->
<!-- -->
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<!-- #### Setup -->
<!--
Import the `amp-vine` component in the header.
-->
<script async custom-element="amp-vine" src="https://cdn.ampproject.org/v0/amp-vine-0.1.js"></script>
<link rel="canonical" href="<%host%>/components/amp-vine/">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
</head>
<body>
<!-- #### Basic Usage -->
<!--
A Vine embed has equal width and height. You can find the `vineid` in the each vine's URL.
-->
<amp-vine width="400" height="400"
data-vineid="MdKjXez002d">
</amp-vine>
<!-- #### Resposive Layout -->
<!--
Resposive layout works as well. In that case you can use any value for `height` and `width` as long as they are the same.
-->
<amp-vine width="1" height="1" layout=responsive
data-vineid="MdKjXez002d">
</amp-vine>
</body>
</html>