Skip to content Skip to sidebar Skip to footer

Adding Autoplay + Prev&next Buttons To Slider

im using the slider explained in codrops tutorial http://tympanus.net/codrops/2014/03/13/tilted-content-slideshow/comment-page-2/#comment-458990. It uses a simple ordered list to d

Solution 1:

You can create the autoplay function manually by using jquery. My code will call the each slide after 10 seconds. (i.e) the next slider will called after 10 seconds

$(document).ready(function(){
        new TiltSlider( document.getElementById( 'slideshow' ) );               
        window.setInterval(function(){              
            $('nav>.current').next().trigger('click');
            if($('nav > .current').next().index() == '-1'){
                $('nav > span').trigger('click');
            }               
        }, 10000);

        });

Post a Comment for "Adding Autoplay + Prev&next Buttons To Slider"