treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Rule13

  • Loop/count to provide visual clues

    OK... I figured something out to achieve the functionality I'm after. This will set the first span to active and then add/remove the active class when the user cycles through using the previous and next buttons. Since the carousel is a circula…
    Comment by Rule13 August 2009 permalink
  • Loop/count to provide visual clues

    I got this working with the following code: $('.item-list ul li').each(function(i) { $('.visual-cue p').append(""); }); $('.visual-cue p span:first').addClass('active'); $('#carousel-nex…
    Comment by Rule13 August 2009 permalink