No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
.gitignore
README.md
amp-viewer.html
amp-viewer.js
bower.json

README.md

amp-viewer

<amp-viewer> is a vanilla custom element that loads an AMP document into a shadow root on your page. Shadow DOM ensures styles of the AMP document are encapsulated, and it is lighter than embedding an iframe.

Demo

<amp-viewer src="demo/sample-content/experience-daydream-today.html"></amp-viewer>

API

Property Description
src The URL of an AMP article. If it's on a different domain, it must be CORS enabled (as it will be fetched by XHR).