October 2017
Intermediate to advanced
370 pages
8h 57m
English
In Chapter 5, Building Rich Media Pages in AMP, we built a product image carousel. We used amp-selector to let the user choose the image to show in the carousel and we used its selected attribute to highlight the selected thumbnail. This all worked great if the user tapped the thumbnails to navigate the images. Recall, however, that if the user swiped through the images, then the highlighted thumbnail would not change, and the thumbnail would be out of sync with the visible carousel image:

Read now
Unlock full access