Feat : update carrousel to not loop with less than 3 item
This commit is contained in:
@@ -194,7 +194,7 @@ $(document).ready(function () {
|
||||
margin: marginValue,
|
||||
// stagePadding: paddingValue,
|
||||
nav: true,
|
||||
loop: true,
|
||||
loop: $('.territory-carousel > .item').length <= 2 ? false : true,
|
||||
center:true,
|
||||
navText: ['<span class="left-arrow"></span>', '<span class="right-arrow"></span>']
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user