I am building a gallery using relative timelines and all seem to working fine in terms of moving between the timelines using buttons. There are 5 timelines assigned to 5 navigation buttons, to easily move between timelines. The issue I am having is with the left and right arrows on the side, needing to move left and right between these relative timelines, depending on which timeline I am on.
Inside my JavaScript I’ve assigned variables to each timeline and declared an if statement on one of the buttons (the right arrow), to move to the next timeline. This functions more or less how I want to, moving to the second timeline from the first. Once declaring a second if statement to move from the second timeline to the third, it seem to overwrite the second timeline completely moving directly to the third timeline. *I hope this makes sense, see attached file: scr5_gallery_prototype.zip (1.2 MB)
I just want to know how I can move backward and forward on these timelines using the left and right arrows within JavaScript. Please assist.