We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
###jQuery
<div data-attach="Carousel" data-carousel-options='{ "width": 100 }'> .. </div>
Attach.add('Carousel', function(el){ new Carousel($(el), $(el).data('carousel-options')); });
$(document).ready(function(){ Attach.run(); });
###MooTools
<div data-attach="Carousel" data-carousel-options="{'width': 100}"> .. </div>
Attach.add('Carousel', function(el){ new Carousel(el, JSON.decode(el.get('data-carousel-options'))); });
window.addEvent('domready', function () { Attach.run(); });