Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the initial slide of an amp-carousel #16699

Closed
ghost opened this issue Jul 12, 2018 · 2 comments
Closed

Setting the initial slide of an amp-carousel #16699

ghost opened this issue Jul 12, 2018 · 2 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jul 12, 2018

I'm setting the initial slide of an amp-carousel using the [slide] attribute as it is described in the examples page. If I use some integer value less then the total number of slides it takes me to the first slide, but when I click on the arrow buttons it starts transitioning slides from the value of the [slide] attribute.

When I use the amp-state and I set a variable there, it also takes me to the first slide and it appears that it doesn't see the value of that variable.

I'm attaching also a sample code so you can reproduce this issue easier.

example.zip

@aghassemi
Copy link
Contributor

Hi, @radoslav-boydev amp-bind does not work on the initial load by design. Please follow #12591 for the same feature request regarding setting initial carousel slide.

@aghassemi aghassemi self-assigned this Jul 12, 2018
@aghassemi
Copy link
Contributor

merging with #12591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant