Download raw (2.1 KB)
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Carousels using data-* attributes for initialization and configuration - jCarousel Examples</title> <!-- Shared assets --> <link rel="stylesheet" type="text/css" href="../_shared/css/style.css"> <!-- Example assets --> <link rel="stylesheet" type="text/css" href="jcarousel.data-attributes.css"> <script type="text/javascript" src="../../libs/jquery/jquery.js"></script> <script type="text/javascript" src="../../dist/jquery.jcarousel.min.js"></script> <script type="text/javascript" src="jcarousel.data-attributes.js"></script> </head> <body> <div class="wrapper"> <h1>Carousels using data-* attributes</h1> <p>This example shows how to setup simple carousel using data-* attributes for initialization and configuration.</p> <div class="jcarousel-wrapper"> <div data-jcarousel="true" data-wrap="circular" class="jcarousel"> <ul> <li><img src="../_shared/img/img1.jpg" width="600" height="400" alt=""></li> <li><img src="../_shared/img/img2.jpg" width="600" height="400" alt=""></li> <li><img src="../_shared/img/img3.jpg" width="600" height="400" alt=""></li> <li><img src="../_shared/img/img4.jpg" width="600" height="400" alt=""></li> <li><img src="../_shared/img/img5.jpg" width="600" height="400" alt=""></li> <li><img src="../_shared/img/img6.jpg" width="600" height="400" alt=""></li> </ul> </div> <p class="photo-credits"> Photos by <a href="http://www.mw-fotografie.de">Marc Wiegelmann</a> </p> <a data-jcarousel-control="true" data-target="-=1" href="#" class="jcarousel-control-prev">‹</a> <a data-jcarousel-control="true" data-target="+=1" href="#" class="jcarousel-control-next">›</a> </div> </div> </body> </html>