Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] jQuery text slider

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #193195
    Tom
    Participant

    Hello,

    I’m working on a simple text slider using jQuery, I’m however not that great with jQuery or JavaScript. At the moment I have this: codepen.

    Basically I’m having problems getting the buttons to only work within their limits (between 0 and 500 margin-left). I tried several things with some if statements none of them worked like I wanted. I think my code could probably be better as well, like I said not that great with jQuery.

    Thanks in advance!

    #193277
    Shikkediel
    Participant

    I thought it was a bit easier to use positioning :

    Text slider pen

    #193297
    Tom
    Participant

    Thanks @shikkediel that’s exactly what I had in mind! I think I’m going to spend some time to get better acquainted with jQuery. Anyway thanks again!

    #193342
    Shikkediel
    Participant

    You’re welcome. That’s time well spent (it’s great stuff). :-)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.