5

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,515
  • 6
  • 26
  • 44
Dana
  • 103
  • 1
  • 1
  • 8

7 Answers7

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
  • 131
  • 2
  • 9
  • `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
2

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

autoplayHoverPause:true
shaunakde
  • 2,557
  • 3
  • 20
  • 38
Nadeem
  • 129
  • 1
  • 3
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,100
  • 24
  • 34
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,

Rumit Patel
  • 3,667
  • 10
  • 38
  • 49
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>
Rakesh Nair
  • 1,083
  • 3
  • 21
  • 30