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

FEATURE REQUEST: Add automatic swipes (carousel) ? #46

Open
oneezy opened this issue Jul 25, 2016 · 2 comments
Open

FEATURE REQUEST: Add automatic swipes (carousel) ? #46

oneezy opened this issue Jul 25, 2016 · 2 comments
Assignees

Comments

@oneezy
Copy link

oneezy commented Jul 25, 2016

FEATURE REQUEST: Add automatic swipes (carousel) ?

@MeTaNoV MeTaNoV self-assigned this Jul 29, 2016
@n1ywb
Copy link

n1ywb commented Dec 2, 2016

do you mean have a timer that fires swipes periodically? the element already inherits selectNext() and selectPrevious() from IronSelectableBehavior so you can just call those from a timer function. One caveat is it will animate the wrap-around transition the wrong way, it will animate all the pages sliding back to the first page like a stack instead of sliding directly to the first page like a proper carousel. I hacked in a kludge to make it animate properly on a 3 element list but you'll need to improve it to make it work with more than 3 elements n1ywb@cef18da

@oneezy
Copy link
Author

oneezy commented Dec 3, 2016

yeah, ideally we could expose the functionality through the API. Something like this,

<iron-swipeable-pages
    timer="3s"
    loop="true"
</iron-swipeable-pages>

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

No branches or pull requests

3 participants