Hello, I am using Layouter for slides, it works well, the only thing which is not possible is the auto slider, can someone help me with a code so that the slider of the layouter can auto slide it self after every 5 secs
Would be similar to this feature request.
https://support.wix.com/en/article/editor-x-request-adding-slideshows
As for a code option, Ronny shared a version on it in the Facebook forum:
https://www.facebook.com/groups/editorxcm/posts/2437300459741979/
Can someone post the code for this as a reply? I haven’t been approved on fb yet and trying to get this feature running. Thanks!
Here’s the code for it:
export function stateManager(item) {
let nextItem;
for (let i = 0; i < item.states.length; i++) {
if (item.states[i].id == item.currentState.id) {
if (i == item.states.length - 1) {
nextItem = item.states[0].id;
}
else {
nextItem = item.states[++i].id;
}
item.changeState(nextItem);
}
}
}
Then you just trigger stateManager($w(’ #statebox ')) to change slide.
here is the code from that post
Thank you, kindly!