A list populates with images and sits horizontally expanding the width depending on the content, this could be any width hence the css in site-content…
Is there any way that some JS with jquery can read the list items and scroll to each individual one without the use of anchors…?
As there could be 5 items or could be 10 depending on the page?
This without a set width for the holding container?
The navigation would sit over the top fixed with content scrolling behind…
I’ve found this tutorial, which is what i’m after but only scrolls down…
Is there anyway to change this to scroll horizontally when the content is indeed going that way and each ‘post’ is next to each other on a horizontal scroll.
From what you have said, it sounds like you are wanting the list of items to scroll horizontally at a set interval of time.
If this is the case, and depending on how good your JS is, you can setup a timer with an interval which moves the container horizontally (positioned relative/absolute, or using margins).
Otherwise you can use one of the many content scrollers available.
I might not be understanding your issue correctly, but I think you can use the jQuery .index().
Maybe take a look at the .index() on the jquery site and see it that’s any help. Plus you’ll have to use some trickery with absolute and relative positioning.