I am creating a web page where the developer wants all navigation to be done by scrolling horizontally (from left to right). I encoded the horizontal layout. However, he would like to be able to run a horizontal layout to load one of the middle divs on my list, which allows the user to scroll in any direction. For example, if I had a list of 5 sections horizontally (1,2,3,4,5), and I wanted the page to start with div 3, which allowed the user to scroll left and right to go to div 2 or vice versa, to switch to div 4. Currently, by default it starts with div 1 (left), which means that the user can scroll only in one direction.
Here is the layout:
Click here to enlarge it.
I also searched the site, but the answer used the anchor / tag name method, but I want to load the page directly on the middle page.
Here are similar questions:
On the side of the note, I'm currently learning jQuery and Javascript, but I'm in the very early stages - still spending through the code academy, but haven't hit any real world code yet. So at the moment I'm playing with plugins as a way to learn, but I hope in a few months I can create my own material!
I just want to know how to do this.
If you have simple javascript / jQuery (jsfiddle) code, it will be highly appreciated.
source share