Use $(selector).sp();
for initialize plugin.
For example, initializaion with parameters:
$('#plug').sp({
maximum_items: 6,
activeChanged: function () {
console.log('Active slide change event');
}
});
Here an example page: Demo
Use maximum_items: number
to display count of your slides. By default number is 4.
Use active_class: ' your_class '
to change active class of slides. By default class name is "active".
Use image_size_style
to set sizing. By default is 'cover'. By now, only two types: cover and contain is available.
Use activeChanged: your_callbak_function()
to set your callback when active slide is changed by logic with class name, but not positioned yet.