7

Currently the carousel stops when you hover it, I've added autoplayHoverPause:false but it doesn't seem to change anything. Is there another option that I could use to stop it from stopping when it's hovered?

$('.owl-carousel').owlCarousel({
    autoplayHoverPause:false,
    loop:true,
    margin:0,
    nav:true,
    responsive:{
        0:{
            items:1
        },
        600:{
            items:2
        },
        1000:{
            items:4
        }
    }
});
Alexis Tyler
  • 1,394
  • 6
  • 30
  • 48
Dana
  • 123
  • 1
  • 1
  • 8

7 Answers7

9

To stop the slide on hover just add the following to your script:

autoplayHoverPause:true
shaunakde
  • 3,009
  • 3
  • 24
  • 39
Nadeem
  • 259
  • 3
  • 3
3

As j.rey noted, it seems stopOnHover is the correct way to start/stop autoplay on hover per the specs on this page:

http://owlgraphic.com/owlcarousel/#customizing

I don't see any reference to autoplayHoverPause in the docs. Maybe that was an older version?

contendia
  • 161
  • 2
  • 9
  • 1
    `autoplayHoverPause` is in [docs here](https://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html#autoplayhoverpause) but `stopOnHover` is not! – Imran Bughio Mar 15 '17 at 13:35
1

Just add stopOnHover:true in your script.

Smrity Ray
  • 19
  • 1
  • Wouldn't that actually have the opposite effect? They want it to continue when hovering, and setting this parameter seems like it would cause it to stop when you hover... – Taegost Dec 06 '17 at 20:31
0

set autoplayHoverPause:false

Fiddle

Anjith K P
  • 2,158
  • 27
  • 35
0

stopOnHover:true https npmjs.com package react-owl-carousel

ddd
  • 1
0

stopOnHover:true https npmjs.com package react-owl-carousel

Use mouseDrag : false.

Dinith Rukshan Kumara
  • 638
  • 2
  • 10
  • 19
Rumit Patel
  • 8,830
  • 18
  • 51
  • 70
0

You can try to modify hover css which is created through owl.carousle.js

<script>
$(".owl-wrapper-outer").mouseover(function(){
                $('.owl-wrapper').css({
                "-webkit-transition": "",
                "-moz-transition": "",
                "-o-transition": "",
                "transition": "",  
                    });

                });
</script>
javaDeveloper
  • 1,403
  • 3
  • 28
  • 42