metafizzy / flickity

:leaves: Touch, responsive, flickable carousels
https://flickity.metafizzy.co
7.53k stars 604 forks source link

Disable pausing autoPlay on hover #55

Closed dom-turnbull closed 8 years ago

dom-turnbull commented 9 years ago

As far as I can tell, it's not possible to disable this as yet.

Is this in the works? If it not, can it be added?

desandro commented 9 years ago

Pausing autoPlay on hover is a good pattern as it puts some level of control back to the user looking at the gallery. IMO, removing it would be an anti-pattern.

But I'm interested to hear what others think. If you would like to see this feature added to Flickity, +1 or subscribe to this issue.

zslabs commented 9 years ago

+1

A typical pattern for this could be if Flickity was used as a "full-page" background-slider for photography websites that you'd want to auto-cycle through. Not my personal preference, but a valid use-case nonetheless.

remisture commented 9 years ago

+1

mickdekkers commented 9 years ago

+1

stuart-mccoy commented 9 years ago

+1

mbryne commented 9 years ago

+1

Agree with @zslabs as that is the use case I have just come across.

A full sized video / image slider that should autoPlay (with bonus points for being able to toggle autoPlay programatically for when video starts playing, currently I am resorting to solution outlined here https://github.com/metafizzy/flickity/issues/94)

mogholito commented 9 years ago

+1

limpa123 commented 9 years ago

+1

halfempty commented 9 years ago

+1

jonnyhaynes commented 9 years ago

+1

PaoloFalomo commented 9 years ago

+1

notflip commented 9 years ago

+1!

elainen commented 9 years ago

+1

permanyer commented 9 years ago

+1

gorgoserio commented 9 years ago

+1

PaoloFalomo commented 9 years ago

+1

nicholas-c commented 9 years ago

+1 only if it's an option and not default

joshrounsville commented 9 years ago

+1

wekii commented 9 years ago

+1

chrishale commented 9 years ago

+1

nlfonseca commented 9 years ago

+1

fizzydigital commented 9 years ago

+1

tgadiot commented 9 years ago

+1

emidiotorre commented 9 years ago

+1

HammenWS commented 9 years ago

+1

michaelwoodruff commented 9 years ago

IMO, removing it would be an anti-pattern

I agree, that it's an anti-pattern, although judging by the number of +1 it seems a lot of people want it.

hardley commented 9 years ago

+1

akmur commented 8 years ago

+1

bootsified commented 8 years ago

+1 Yes, it's an anti-pattern if the slider is part of the UI. I have a site, though, that uses the slider as a fullscreen background behind the content. I need to be able to disable the "pause on hover". It would be really nice to have the option, even though it would rarely get used.

nvartolomei commented 8 years ago

I agree that this is an anti pattern usually but when using flickity for full screen sliders this is an issue.

+1 :+1:

ghost commented 8 years ago

+1 for full screen sliders it would be really helpful.

desandro commented 8 years ago

Next version will have pauseAutoPlayOnHover option. Set this pauseAutoPlayOnHover: false to keep autoPlay playing on hover.

richgcook commented 8 years ago

@desandro I had a quick question. I have custom left/right nav set up which is 50% split over the image, so if you hover over the left and click, the slider proceeds previous and if you hover over the right the slider proceeds next. By having this, however, it seems to have voided the hover and pause function as there is a higher z-index container over the slider. Is there any way to call the pause method so I could bind it if the user hovers over the higher z-index container rather than the slider?

desandro commented 8 years ago

@richgcook Yes see https://github.com/metafizzy/flickity-docs/issues/5#issuecomment-78370765 for the Player API

desandro commented 8 years ago

Flickity v1.1.2 has been released with pauseAutoPlayOnHover option. See pauseAutoPlayOnHover: false to keep autoPlay playing on hover. See demo http://codepen.io/desandro/pen/yeeQJK

Thanks for all the feedback on this issue. :rainbow: :bear:

richgcook commented 8 years ago

@desandro Amazing! Thanks!

richgcook commented 8 years ago

@desandro Ah right yes so I'd still need to use the Player API if I have custom left/right nav on a higher z-index over the slider. Be nice if you could add a selector to the pauseAutoPlayOnHover for example pauseAutoPlayOnHover: '.slider-navigation'. Thanks for all your help.

dalvujovic commented 7 years ago

Please ,when slide is clicked autoplay stops,i dont want that,how to make autoplay to work after clicking

dicktornfeldt commented 6 years ago

@dalvujovic I solved this by adding pointer-events: none to a wrapper div.

luksak commented 2 years ago

@dicktornfeldt that only works as long as you don't need to have anything clickable in the slideshow. In my case I have links that stop working with this approach.

Here is one that keeps the elements clickable:

flkty.on('click', () => {
  flkty('playPlayer');
});