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.

Carousel option is not working when set with object syntax

See original GitHub issue

I need to use cycle and pause to false. Thus, trying the following code din’t continue the cycle on hover of carousel item:

.carousel({cycle: true, pause: false})

But using single option works:

.carousel('pause')

I’m using v4.0.0.

So, how can we use the cycle and set off the pause on hover behavior?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Johann-Scommented, Jul 13, 2018

yep that’s the normal behavior, your first line init a new carousel instance, the second line call our pause method,

So you should do:

.carousel('pause')
.carousel('cycle')
0reactions
ri8ikacommented, Jul 16, 2018

It will begin to cycle but on hover over the item should not pause. Which is not working with the applied options. Only cycle is working not pause.

Thank you for your great effort. Please leave it closed otherwise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pure JS Carousel bug - javascript - Stack Overflow
The problem is that it won't work without one very strange (to me) crutch. It's marked in the code(line 28). Seems like something...
Read more >
Carousel - Bootstrap
The carousel is a slideshow for cycling through a series of content, built with CSS 3D transforms and a bit of JavaScript. It...
Read more >
Options | Owl Carousel | 2.3.4 - GitHub Pages
responsive. Type: Object Default: empty object. Object containing responsive options. Can be set to false to remove responsive capabilities.
Read more >
Bootstrap JS Carousel Reference - W3Schools
Carousel Options ; pause, string, or the boolean false, "hover", Pauses the carousel from going through the next slide when the mouse pointer...
Read more >
CSS-Only Carousel - CSS-Tricks
CSS-Only Carousel · Setting some boxes in a horizontal row with CSS Flexbox is easy. · Showing only one box at a time...
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