Desliza.js

Lightweight vanilla javascript carousel.
Free for personal and commercial use.

Install

Options


new Desliza({
    selector: '.slider',
    duration: 180,
    easing: 'ease-out',
    items: 1,
    startIndex: 0,
    center : false,
    threshold: 10,
    draggable : true,
    dots : false,
    buttons : true,
    onInit: () => {},
    onChange: () => {},
    onAfterChange: () => {}
});
                        

API


next()
Go to the next item.
                        

prev() 
Go to the previous item.
                        

moveTo(index) 
Go to a specific item.