m-carousel
Adds an AMP carousel to the email.
Attributes
Attribute | Default Value | Description |
---|---|---|
width | 600 | Carousel width in pixels |
height | 300 | Carousel height in pixels |
layout | responsive | Carousel layout. Allowed values: fill, fixed, fixed-height, flex-item, intrinsic, nodisplay, responsive |
type | Type of carousel (slider/carousel) | |
loop | Enables infinite looping | |
autoplay | Enables automatic slide scrolling | |
delay | 5000 | Delay between slides in autoplay mode, in milliseconds |
Example
html
<m-carousel width="600" height="350">
<m-img src="img/img1.png" width="100%" height="350" alt=""></m-img>
<m-img src="img/img2.png" width="100%" height="350" alt=""></m-img>
<m-img src="img/img3.png" width="100%" height="350" alt=""></m-img>
</m-carousel>