Treehouse: Grow your CSS skills. Land your dream job.

infinite loop sliders

  • # February 28, 2012 at 12:23 pm

    Hey guys & girls,
    How would you go about making an infinite loop in a slider using JavaScript?
    The want I’ve done it before was to go back to the first one once the end has reached, but I’d like something as smooth as this
    Would you move the elements around in the background to be in the next position?

    I’d really love to hear how other people approach this or any tricks you might have

    # February 28, 2012 at 4:12 pm

    I’ve used several “infinite” jquery plugin’s and they all use the clone option. Seems to me as a great solution.

    But what do you mean with “move the elements around in the background”?

    # February 28, 2012 at 4:39 pm

    in the past ive used

    # February 28, 2012 at 5:48 pm

    Thanks guys, I’m mainly looking to find out how to make it look seamless once you reach the last image
    I’ll take a look at the source of simplyscroll

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.