AMP
  • websites

amp-vine

Introduction

Use amp-vine to embed Vine videos in your AMP HTML files.

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>

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>

Responsive 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>
Daha fazla açıklamaya mı ihtiyacınız var?

Bu sayfadaki açıklamalar tüm sorularınıza yanıt vermiyorsa, özgün kullanım durumunuzu tartışmak üzere diğer AMP kullanıcılarına ulaşmaktan çekinmeyin.

Stack Overflow'a git
Açıklanmayan bir özellik mi var?

AMP projesi, katılımınızı ve katkılarınızı güçlü bir şekilde teşvik ediyor! Açık kaynak topluluğumuzun devamlı bir katılımcısı olacağınızı umuyoruz ancak özel olarak ilgilendiğiniz konularla ilgili tek seferlik katkıları da memnuniyetle karşılıyoruz.

Örneği GitHub'ta düzenle