Is it possible with jquery that when a user scrolls down the page that the background animate from 50% white to 90% white or someting?
So first it is the color rgba(255,255,255,.5)
and when a user scroll 210px below the color become rgba(255,255,255,.9)
.
here you go (this will change the page color to blue when you scroll more than 210px, and will revert back to red if you go back up):
with help of @redmoon7777
css
jQuery
DEMO
Updated, more generic version:
In action
If you want a smooth, gradiated change when scrolling you should try
JSFiddle
For smooth transition effect you should check scroll position, accordingly you can change bg-color. use .animate function of jquery.
http://jsfiddle.net/cgspicer/V4qh9/
With animation