Blog

« Back

Very short and simple jQuery slider with slide effect

Author: Milen Hristov
Created on: 07.03.2013 17:36

I needed a very small and easy jQuery slider without any additional features but I didn't find anything that was enough simple, so ... There is what I created:

setInterval(function() { 
    $('#slider-wrapper  > div:first')
    .animate({marginLeft: '-=484px'}, 500, function () {
        $(this).appendTo('#slider-wrapper').css('marginLeft', 5) })
    },  5000);

You can see a life working example of this slider on http://test.mogesto.com. The only problem is that you must set manualy the size of the boxes you're sliding.





No comments

Comments

Name

E-mail

Comment

Enter the text from the image

Blog tags