In this tutorial, we'll cover what an AMP carousel is, why you should use it, and how to build one easily for your next email campaign.
Interactive content isn't just for websites anymore. Including JavaScript to create interactive features will cause your email to go undelivered — with AMP for Email, you can build engaging carousels that allow users to swipe or click through multiple images or content sections directly inside the email itself. Carousels are an excellent way to highlight products, show off event photos, or guide readers through a visual story — all without needing JavaScript.
A carousel, sometimes called a "slider," is a collection of images or content panels that rotate horizontally. Users can click navigation arrows, swipe on mobile, or autoplay through the slides.
In AMP for Email, carousels are powered by the <amp-carousel>
component — a lightweight, responsive solution designed specifically for interactive content inside emails.
This is an example built on bootstrap.css
Here are a few good reasons to include carousels in your next email:
Use Case | Example |
---|---|
Product Highlights | Show off multiple products |
Event Promotions | Rotate through event sessions |
Portfolio Samples | Showcase design work or case studies |
Testimonials | Rotate customer quotes visually |
The AMP team provides a flexible <amp-carousel>
element.
Inside the <amp-carousel>
element you can include:
<amp-img>
for images (<img> is disallowed in AMP!).
<div>
and other elements for your custom content.
✅ AMP automatically handles the sliding animation.
✅ No extra JavaScript or plugins are needed.
In your email's <head>
, you must include the amp-carousel
script:
<script async custom-element="amp-carousel" src="https://cdn.ampproject.org/v0/amp-carousel-0.2.js"></script>
Here is a fully working AMP carousel you can plug into the <body>
of your email.
<amp-carousel width="700" height="450" layout="responsive" type="slides">
<amp-img src="https://www.google.com/images/background/p1.jpg" width="700" height="450"
layout="responsive" alt="a sample image"></amp-img>
<amp-img src="https://www.google.com/images/background/p2.jpg" width="800" height="600"
layout="responsive" alt="a sample image"></amp-img>
<amp-img src="https://www.google.com/images/background/p3.jpg" width="700" height="450"
layout="responsive" alt="another sample image"></amp-img>
<amp-img src="https://www.google.com/images/background/p4.jpg" width="700" height="450"
layout="responsive" alt="and another sample image"></amp-img>
<amp-img src="https://www.google.com/images/background/p5.jpg" width="700" height="450"
layout="responsive" alt="and another sample image"></amp-img>
</amp-carousel>
✅ Users can swipe or click through the slides.
✅ Works on desktop, tablet, and mobile.
type="slides"
: A traditional sliding effect (good for email). type="carousel"
: Infinite looping carousel (not always ideal for email; use carefully).width
, height
, and layout="responsive"
for each <amp-img>
.alt
attribute on images for screen readers.Keep the number of slides small (3–5 is ideal) to avoid overwhelming the reader or slowing down the email load time. High-quality images (optimized for web) will make your carousel feel more professional and snappy.
Want to test your carousel before you send it?
Try it in the AMP Playground to preview the swipe experience!