/ Published in: jQuery
Loading external scripts on demand the smart way with Head JS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var carousel = $(".carousel"); if ( carousel.length > 0 ){ head.js("js/jcarousel.jquery.min.js", function() { carousel.jcarousel({ wrap: 'circular', visible: 4, easing: 'swing', scroll: 2, animation: 800, initCallback: function(){ carousel.removeClass('clipped'); } }); }); }