AMP

The AMP Component Catalogue

The AMP HTML library consists of a basic runtime that brings the core functionalities of AMP to your page. If you want to add additional features you can do so by using one or more of the ready-to-use AMP components. They are classified as:

Built-in Components that are included in the base library, such as amp-img and amp-pixel.
Extended Extensions to the base library that must be explicitly included in the document as custom elements.
Experimental Components that are released but are not yet ready for wide use.

Highlighted Components

Filter by category

动态内容

amp-bind
利用数据绑定和类似于 JS 的简单表达式,使元素因应用户操作或数据变更而变化。
amp-form
Allows you to create forms to submit input fields in an AMP document.
amp-mraid
Supports interaction with the MRAID host API within Ad webviews in...
amp-mustache
允许呈现 Mustache.js 模板。
amp-smartlinks
Run Narrativ's Linkmate process inside your AMP page

媒体

amp-anim
管理动画图像,通常是GIF。
amp-audio
替代 HTML5 audio 标记。
amp-img
替换 HTML5 img 标记。
amp-video
替代 HTML5 视频标记。
amp-youtube
显示 YouTube 视频。

演示

amp-animation
定义和显示动画。
amp-fit-text
扩大或缩小字体大小以适合给定空间内的内容。
amp-font
Trigger and monitor the loading of custom fonts on AMP pages.