Skip to content

Support dynamic height for amp-carousel with slides  #17116

@milkovsky

Description

@milkovsky

Given: there is an amp-carousel with slides. Each slide can contain both text and images.
Current issue: The height of the carousel is not dynamic, some slides have too many white space, some slide content is cut off.

Actual result:
slideshow--fixed-height

Expected:

slideshow--responsive-height

Source code:

<amp-carousel type="slides" layout="responsive"
                  controls loop
                  height="500" width="500" >
  <div class="slide">....</div>
  <div class="slide">....</div>
  <div class="slide">....</div>
</amp-carousel>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions