How to change background color based on horizontal scroll position?
<p>I’m trying to make my background color change based on the scroll position. I’ve found a lot of tutorials, but the thing is, my website scrolls horizontally so whenever I use the codes I find, it just doesn’t work because they search for the vertical scroll position which is always 0!
I want something like <a href="http://jsfiddle.net/cgspicer/V4qh9/s" rel="nofollow noreferrer">this</a> but with horizontal scroll.</p>

<pre><code>  [1]: [http://jsfiddle.net/cgspicer/V4qh9/][1]
</code></pre>