So although there have been a few threads about this, none of the provided codes work fine.
I used this:
var sections = window.theme.sections;
var slideshowAutoExtension = {
init: function() {
this.on('slideshow_desktop_init_done', this._autoplaySlideshow.bind(this));
},
_autoplaySlideshow: setInterval(function() {
var $slide = $('.slideshow__slide--active')
.removeClass('slideshow__slide--active');
var $button = $('.slideshow__button--active')
.removeClass('slideshow__button--active');
var $slides = $('.slideshow__slide');
var currentIndex = ($slides.index($slide) + 1) % $slides.length;
$slides
.eq(currentIndex)
.addClass('slideshow__slide--active');
var $buttons = $('.slideshow__button')
.eq(currentIndex)
.addClass('slideshow__button--active');
}, 10000)
};
sections.extend('slideshow', slideshowAutoExtension);
The problem: On Mobile, the button description and the button do not shift (look at the three dots and notice with the next selected slide the description+button does not move into the middle of the screen. The images shift as expected, On desktop it works fine. Here are some screenshots.
Thanks for help!
Best,
CW



