snipt

Ctrl+h for KB shortcuts

JavaScript

jcarousel wrap and autoscroll

1
2
3
4
$('.jcarousel').jcarousel({
wrap:'both'
})
.jcarouselAutoscroll({interval:2000});
https://snipt.net/embed/9b0584bd5b905ad729c34f74e6e20e79/
/raw/9b0584bd5b905ad729c34f74e6e20e79/
9b0584bd5b905ad729c34f74e6e20e79
js
JavaScript
4
2019-07-14T18:48:22
True
False
False
Apr 10, 2014 at 05:56 AM
/api/public/snipt/128909/
jcarousel-wrap-and-autoscroll
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nx">$</span><span class="p">(</span><span class="s1">&#39;.jcarousel&#39;</span><span class="p">).</span><span class="nx">jcarousel</span><span class="p">({</span> </span><span id="L-2"><a name="L-2"></a><span class="nx">wrap</span><span class="o">:</span><span class="s1">&#39;both&#39;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">})</span> </span><span id="L-4"><a name="L-4"></a><span class="p">.</span><span class="nx">jcarouselAutoscroll</span><span class="p">({</span><span class="nx">interval</span><span class="o">:</span><span class="mi">2000</span><span class="p">});</span> </span></pre></div> </td></tr></table>
jcarousel