Skip to content

toggleAutoplay action does not animate first slide transition correctly for amp-carousel[type=slides] #17741

@kevinkassimo

Description

@kevinkassimo

What's the issue?

When calling toggleAutoplay on the amp-carousel[type=slides], the first slide move behaves instantly instead of with animation.
autoplaybug

How do we reproduce the issue?

<amp-carousel id="slides" width="400" height="300" layout="responsive" type="slides" delay="500">
  <amp-img src="./img/1.jpg" layout="fill" id="img-1">
  </amp-img>
  <amp-img src="./img/2.jpg" layout="fill" id="img-2">
  </amp-img>
  <amp-img src="./img/3.jpg" layout="fill" id="img-3">
  </amp-img>
</amp-carousel>
<button id="toggler" on="tap:slides.toggleAutoplay">Toggle Autoplay</button>

Click the button and observe.

What browsers are affected?

All

Which AMP version is affected?

Tested with latest release.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions