<html amp>
<head>
<meta charset="utf-8">
<title>AMP圖片輪播-amp-carousel</title>
<link rel="canonical" href="./regular-html-version.html">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-custom>
/*CSS樣式設定*/
.container{
width: 600px;
}
</style>
<style amp-boilerplate>body{animation:start 8s steps(1,end) 0s 1 normal both;animation:start 8s steps(1,end) 0s 1 normal both;animation:start 8s steps(1,end) 0s 1 normal both;animation:start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes start{from{visibility:hidden}to{visibility:visible}}@keyframes start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{animation:none;animation:none;animation:none;animation:none}</style></noscript>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script>
</head>
<body>
<div class="container">
<amp-carousel
width="400"
height="300"
layout="responsive"
type="slides">
<amp-img src="https://photo.minwt.com/cc0/06.jpg"
width="400"
height="300"
layout="responsive"
alt="a sample image"></amp-img>
<amp-img src="https://photo.minwt.com/cc0/09.jpg"
width="400"
height="300"
layout="responsive"
alt="another sample image"></amp-img>
<amp-img src="https://photo.minwt.com/cc0/08.jpg"
width="400"
height="300"
layout="responsive"
alt="and another sample image"></amp-img>
</amp-carousel>
</div>
</body>
</html>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.