Auto-stripe jQuery debug

From UnionCloud Support
Revision as of 11:32, 30 August 2018 by Dannyjkendall12 (talk | contribs) (Created page with "To be applied to global JS: <pre> setTimeout(function(){ jQuery('#homepage-grid').jcarousel({ auto: 2, wrap: 'last', animation: 10000, itemFallbac...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To be applied to global JS:

setTimeout(function(){

 jQuery('#homepage-grid').jcarousel({
        auto: 2,
        wrap: 'last',
        animation: 10000,
		itemFallbackDimension: 800 

    });
	
 }, 1000);

NOTES: Replace #homepage-grid with the id of your slider.

Wrapped in a function to delay it by a second else the next/prev buttons get hidden. itemFallbackDimension to fix height/width error.

To control time before scrolling in this fix auto:2 waits 2 seconds and the 1000 adds an additional second delay (1000ms) animation as an example of scrolling speed (10,000ms - 10secs)