Showing
1 changed file
with
8 additions
and
0 deletions
@@ -46,4 +46,12 @@ exports.init = function(selector) { | @@ -46,4 +46,12 @@ exports.init = function(selector) { | ||
46 | slider.unslider('next'); | 46 | slider.unslider('next'); |
47 | } | 47 | } |
48 | }); | 48 | }); |
49 | + | ||
50 | + setInterval(function(){ | ||
51 | + if (slider.data('unslider').current >= cols) { | ||
52 | + slider.unslider('animate:first'); | ||
53 | + } else { | ||
54 | + slider.unslider('next'); | ||
55 | + } | ||
56 | + },2000); | ||
49 | }; | 57 | }; |
-
Please register or login to post a comment