Auto-stripe jQuery debug

From UnionCloud Support
Revision as of 11:57, 30 August 2018 by Dannyjkendall12 (talk | contribs)
Jump to: navigation, search

Stripe not scrolling Solution: fix by manually specifying settings.

To be applied to global JS:

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

    });
	

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

Next and previous buttons not showing

Solution: Delay settings after page load


Example 1000ms (1 seconds)

setTimeout(function(){

//Enter settings here

 }, 1000);

Wrapped in a function to delay it by a second else the next/previous buttons get hidden.

No width/height set for items. This will cause an infinite loop. Aborting

Solution: specify an itemFallbackDimension