P
P
Petr Volkhanov2021-11-06 20:58:32
Accelerated Mobile Pages
Petr Volkhanov, 2021-11-06 20:58:32

How to make slides in amp-carousel links?

How to make slides in amp-carousel links? How should I change the markup below?

<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.1.js"></script>
<amp-carousel async height="300" layout="responsive" type="carousel" role="region" aria-label="Basic usage carousel">
  <amp-img src="/static/samples/img/image1.jpg" width="400" height="300" alt="a sample image"></amp-img>
  <amp-img src="/static/samples/img/image2.jpg" width="400" height="300" alt="another sample image"></amp-img>
  <amp-img src="/static/samples/img/image3.jpg" width="400" height="300" alt="and another sample image"></amp-img>
</amp-carousel>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Legal Adviser, 2021-11-11
@eprivalov

Probably every

<amp-img src="/static/samples/img/image1.jpg" width="400" height="300" alt="a sample image"></amp-img>
wrap in<a>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question