Horizontal scrolling

Soldato
Joined
27 Dec 2005
Posts
17,296
Location
Bristol
I'm looking to create a horizontally-scrolling website, scrollable via the mouse wheel, and I've knocked up one with a JS script but it relies on a fixed width which is useless for pretty much any website with more than one page or variable content.

Anyone know of any better scripts that allow for variable content?
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
Can we see your example site?

Not sure how the code would work but I dont imagine it would be too difficult to change to a variable width.

(I dont think it's a good idea in terms of UI to use the mouse wheel for horizontal scrolling though. Is it going to work for people who dont have a scroll wheel? laptops/tablets/phones)
 

fez

fez

Caporegime
Joined
22 Aug 2008
Posts
25,798
Location
Tunbridge Wells
Sideways scrolling websites aren't very common for a reason. There are plenty of jquery plugins that will allow/ help you do this but from a usability perspective they are not great. If you gave us a bit more of an idea what you want we could help more.

E. That doesn't work that well on mobile. Perhaps it will be better when it more related to the final product but I have never used a horizontal scrolling site I liked. Is there a site you are taking inspiration from?
 
Last edited:
Soldato
OP
Joined
27 Dec 2005
Posts
17,296
Location
Bristol
No inspiration in particular, the main reason is something a little different but not too crazy, and it's, as the domain gives a way, largely photography which I think does suit horizontal layouts. In fact any pages (ie contact) without photos won't require scrolling so it'll be purely for that.

And yeah, haven't looked at mobile at all just quickly checked if it worked basically as a fallback. Like I said there'll be a separate mobile site.
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
In my opinion, if there's no specific reason you need it to scroll horizontally, you should just stick to a normal vertical scrolling website.

A few reasons why I say this:
1- Menu links will need to be scripted to scroll to the correct place. I dont think an anchor tag can sroll horizontally.
2- It changes a lot of the default scroll behaviour. Usually my scroll wheel moves a site up/down, not left/right. I also dont actually use the scroll wheel much and prefer to click it to toggle scrolling, which is blocked on your site.
3- It's going to be very difficult to fit content onto smaller screens. HTML naturally fits objects/text into the available space and flows things below if they dont fit. You'll need to do quite a lot of work to prevent the default behaviour and get things to flow horizontally rather than vertically.
 
Soldato
OP
Joined
27 Dec 2005
Posts
17,296
Location
Bristol
Appreciate your advice, just up for a challenge and fancy designing something a bit different too.

1. There'll be no anchor links so that shouldn't be an issue
2. Not 100% sure what you mean about clicking to toggle scrolling, but I've added arrows to the scroll bar and you can click anywhere along the bar
3. Yep, will be some work :)

Updated the previous link just as I'm going and to show those changes.
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
Ok, fair enough. Go for it.

The scroll thing I am talking about is when you click the mouse wheel. Dont know what to call it, but you get the scroll icon on screen and you can scroll by moving the pointer around. I use this most of the time (got into the habit after years of using a mouse with a broken scroll wheel)

It looks much better with the background and styled menu in place.
 
Back
Top Bottom