question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pause/Play Carousel

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

The Carousel component does not seem to provide any means to pause or play the slideshow. Slick has slickPause() and slickPlay() methods. It’d be great if we could access those.

What does the proposed API look like?

Providing pause() and play() methods should solve this. I also tried working around this with the autoplay prop. It doesn’t resume the animation when set back to true.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
afc163commented, Jan 29, 2019

Try this.slider.innerSlider.slickPause().

<Carousel ref={slider => { this.slider = node }}>
0reactions
JuanSevillanocommented, Sep 25, 2020

According my package.json i’m using this version “antd”: “^4.6.4” and ref.current.innerSlider.autoplay() returns “is not a fuction” but when I print it there’s the function. The solution that worked for me was ref.current.slick.slickPlay() and ref.current.slick.slickPause()

Read more comments on GitHub >

github_iconTop Results From Across the Web

Carousels - Access & Use
Carousels consist of a circular arrangement of sections (or slides) that ... Make sure the pause / play buttons have an accessible name...
Read more >
Add pause/play functionality on carousel - Stack Overflow
Try this example if you want to pause using a button. In this case the only problem is that button has to be...
Read more >
Making image carousel with pause/play button
Hello guys the following tutorial describes how to make workable image carousel, with the ability to pause and continue image sliding.
Read more >
Pause / play button | WordPress.org
Hello everyone, I'm trying to find out how to add a pause/play button to the Anything ... Have a look at the Owl...
Read more >
Carousel - eBay MIND Patterns - GitBook
Last update: Nov 4th, 2022. Discrete carousel containing 5 items per slide. ... Pause/Play button, if the carousel can auto-progress. 2. Previous button....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found