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

Autoplay Plugin #64

Open
cbieser opened this issue Feb 3, 2021 · 7 comments
Open

Autoplay Plugin #64

cbieser opened this issue Feb 3, 2021 · 7 comments

Comments

@cbieser
Copy link

cbieser commented Feb 3, 2021

Is your feature request related to a problem? Please describe.
I want to switch from Swiper to Tiny-Swiper, but I need Autoplay.
Do you have any plans for an official plugin or is there an unofficial plugin?

Describe the solution you'd like
Official Plugin

Additional context
https://swiperjs.com/swiper-api#autoplay

@joe223 joe223 added the solving label Feb 3, 2021
@joe223
Copy link
Owner

joe223 commented Feb 4, 2021

Hi @cbieser Check out version ^2.1.0

Here is the doc https://tiny-swiper.js.org/docs/api/#autoplay

@joe223 joe223 closed this as completed Feb 4, 2021
@joe223 joe223 removed the solving label Feb 4, 2021
@cbieser
Copy link
Author

cbieser commented Feb 4, 2021

Hi @joe223 ,
thank you very much!
Could you please add the API methods start and stop?

@joe223
Copy link
Owner

joe223 commented Feb 4, 2021

Sure, but it's not too hard. Would you like to create a PR? The basic logic is same with

function onTouchStart () {
clearTimeout(autoPlayState.timeoutId)
autoPlayState.pause = true
autoPlayState.timeoutId = void 0
}
function onTouchEnd () {
autoPlayState.pause = false
play()
}

@TenSketch
Copy link

TenSketch commented Feb 10, 2022

autoplay link is not working. Kindly describe the steps

@joe223
Copy link
Owner

joe223 commented Feb 11, 2022

autoplay link is not working. Kindly describe the steps

Migrate to https://tiny-swiper.js.org/docs/api/#autoplay

@joe223 joe223 reopened this Feb 11, 2022
@TenSketch
Copy link

autoplay link is not working. Kindly describe the steps

Migrate to https://tiny-swiper.js.org/docs/api/#autoplay

Did, but the smooth swipe is not there

@joe223
Copy link
Owner

joe223 commented Feb 11, 2022

autoplay link is not working. Kindly describe the steps

Migrate to https://tiny-swiper.js.org/docs/api/#autoplay

Did, but the smooth swipe is not there

What is smooth swipe?😂 Maybe the same thing with different name?

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

3 participants