Details
I am currently using a flickity slideshow that automatically goes to the next picture on a click. Within the slideshow, I have placed a button with text and a link to an external website (e.g. ).
My Problem:
When I click on the link, my slideshow advances to the next slide while the external site is loading (approximately 500 ms). This behavior is not desired.
What I want is for the link to open immediately without the slideshow moving to the next slide simultaneously.
var flkty = new Flickity(elem, {
cellAlign: 'center',
contain: true,
wrapAround: true,
prevNextButtons: false,
pageDots: false,
autoPlay: false,
});
flkty.on( 'staticClick', function() {
flkty.next()
})
You can see the issue here ---------→ https://codepen.io/skurodrome/pen/XWXWapo