Forum Moderators: open
I've been building a jquery plugin that acts as a carousel for a single image as a way to learn more about plugin development.
It has previous and next buttons that are designed to loop through as well as a window.setInterval to scroll automatically to begin with.
now the first time I try to scroll through, the previous button takes you to the 'next' item and not the previous item and the next button doesn't animate properly (though it does use the correct order).
Once It's gone through the sequence once however (even though the correct images aren't display, but in terms of numbers), everything seems to work fine. I'm totally stumped as to why this is happening. Does anyone have any clues? Are there any kind of initialize functions or setup functions I need to call first?
I've tried this with a number of the button click events removed and I still get the same issue.