the amazing image slider animation.
please download the project and open the index.html in browser to see the result.
all logic code in slider.js.
new Slider({
el: document.getElementById('el'), // dom element
slice_num: 6, // the slice number
//mode: 'cube', // mode can select the 'cube' or 'flat'
time: 2, // circle time is 2 seconds
transition_delay: 0.25, // the delay of elements is 0.25 seconds
transition_time: 0.5, // single element transition time is 0.5 seconds
});