I am using the The Swipeable Gallery component to display a set of my dynamic products coming through a JSON feed but I would like to pause the auto play of the Gallery for 3 seconds whilst the intro frame finishes. Is there an easy way to do this?
Thank you
Yes, this has been created in the AdWords environment.
Would it be possible to provide a few steps which would help me do this via custom JS & updating the HTML in CodeView?
Much appreciated.
Thank you
//Delay Gallery functions var galleryCycle; function initGalleryCycle() { var galleryCycleFrameDur = 3500; var galleryCycleTotalDur = galleryCycleFrameDur * itemsLength; console.log("+ galleryCycleTotalDur: ", galleryCycleTotalDur); // First cycle after initial delay. var galleryCycleDelay = 5000; setTimeout(function() { console.log("+ start galleryAutoRotate first cycle"); common.galleryAutoRotate(galleryCycleTotalDur); common.isFrameEnd = true; }, galleryCycleDelay); // 2nd Cycle after full duration + buffer. galleryCycle = setTimeout(function() { console.log("+ start galleryAutoRotate second cycle"); common.galleryAutoRotate(galleryCycleTotalDur); }, galleryCycleTotalDur + galleryCycleDelay + 1000); } function stopGalleryCycle() { // Clear timeouts. clearTimeout(galleryCycle); // Stop gallery cycle. common.galleryStopRotation(); }