Refael
asked on
Flickity on last slide function
Hello Experts,
I am using Flickity v2.0.3. I am trying to do the flowing simple task:
http://flickity.metafizzy. co/events. html#selec t
When the user selects the last slide I need to remove the background image from the gallery. All I am searching for is how to know when the user clicked/drag and he is at the last slide.
I am using Flickity v2.0.3. I am trying to do the flowing simple task:
http://flickity.metafizzy.
When the user selects the last slide I need to remove the background image from the gallery. All I am searching for is how to know when the user clicked/drag and he is at the last slide.
var $gallery = $('.gallery').flickity({
cellSelector: '.slide-cell',
accessibility: true,
cellAlign: 'center',
containt:true,
draggable: true,
prevNextButtons: false,
resize: true,
setGallerySize: false,
wrapAround: true
});
$(".flickity-page-dots").on( 'click', 'li' function() {............................}
ASKER
leakim971 thank you but....
There is draggable and warp as well so it needs to trigger not only on click. This I have done as well but it did not solve the other options. It should work together with the gallery function.
There is draggable and warp as well so it needs to trigger not only on click. This I have done as well but it did not solve the other options. It should work together with the gallery function.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
:-) This is the best the solution because it is integrated with the slideshow api plugin
Open in new window
I'm assuming you've jQuery in the box to be able to use : .on( 'click', 'li' function() {