jcarousel simple test
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://raw.github.com/jsor/jcarousel/0.2.8/lib/jquery.jcarousel.js"></script>
<ul class="jcarousel">
<li><img src="http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg" width="75" height="75" alt="" /></li>
<li><img src="http://static.flickr.com/75/199481072_b4a0d09597_s.jpg" width="75" height="75" alt="" /></li>
<li><img src="http://static.flickr.com/57/199481087_33ae73a8de_s.jpg" width="75" height="75" alt="" /></li>
<li><img src="http://static.flickr.com/77/199481108_4359e6b971_s.jpg" width="75" height="75" alt="" /></li>
<li><img src="http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg" width="75" height="75" alt="" /></li>
<li><img src="http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg" width="75" height="75" alt="" /></li>
<li><img src="http://static.flickr.com/58/199481218_264ce20da0_s.jpg" width="75" height="75" alt="" /></li>
<li><img src="http://static.flickr.com/69/199481255_fdfe885f87_s.jpg" width="75" height="75" alt="" /></li>
<li><img src="http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg" width="75" height="75" alt="" /></li>
<li><img src="http://static.flickr.com/70/229228324_08223b70fa_s.jpg" width="75" height="75" alt="" /></li>
</ul>
CSS
.jcarousel-container-horizontal {
padding: 20px 40px; /* makes space for buttons -- optional */
}
.jcarousel-clip {
overflow: hidden;
}
li {
margin-left: 0;
margin-right: 10px;
}
.jcarousel-item-placeholder {
background: #fff;
color: #000;
}
/**
* Horizontal Buttons
*/
.jcarousel-next-horizontal,
.jcarousel-prev-horizontal {
position: absolute;
top: 43px;
width: 32px;
height: 32px;
cursor: pointer;
background: #ccc;
}
.jcarousel-next-horizontal {
right: 5px;
}
.jcarousel-prev-horizontal {
left: 5px;
}
.jcarousel-next-horizontal:hover,
.jcarousel-next-horizontal:focus,
.jcarousel-prev-horizontal:hover,
.jcarousel-prev-horizontal:focus {
background: #ccf;
}
.jcarousel-next-horizontal:active,
.jcarousel-prev-horizontal:active {
background: #cff;
}
.jcarousel-next-disabled-horizontal,
.jcarousel-next-disabled-horizontal:hover,
.jcarousel-next-disabled-horizontal:focus,
.jcarousel-next-disabled-horizontal:active,
.jcarousel-prev-disabled-horizontal,
.jcarousel-prev-disabled-horizontal:hover,
.jcarousel-prev-disabled-horizontal:focus,
.jcarousel-prev-disabled-horizontal:active {
cursor: default;
background: #eee;
}
JavaScript
jQuery(document).ready(function() {
jQuery('.jcarousel').jcarousel();
});