October 2017
Intermediate to advanced
370 pages
8h 57m
English
Let's begin our e-commerce product listing page with a carousel of products--we'll use t-shirts for our products. Clicking on any item on the carousel will load up the product details page for that item.
Before using amp-carousel, it must be included with:
<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script>
Each immediate child of the <amp-carousel> tag is treated as an item of the carousel. Let's start with the thumbnail images. A first attempt we'll add the following to the body of our page (
Read now
Unlock full access