I am looking to create a unique UI behavior where there is a responsive content followed by a section with a background image that scrolls along with the page until it reaches the top and then freezes. I have searched for similar solutions but haven't found exactly what I need.
Unlike using a fixed background image at the top left, I want the image to start below the top of the page.
This question on Stack Overflow got me started in the right direction:
How can I make a div stick to the top of the screen once it's been scrolled to?
I also came across this fiddle which has some elements of what I'm trying to achieve, but I've hit a roadblock in my progress. (I may have unintentionally disrupted the code while experimenting. Imagine the big red box as the background image.)
http://fiddle.jshell.net/5y2b4xoL/
In essence, I want the background image to scroll alongside the page until it reaches the top, at which point it becomes fixed.
Any assistance would be greatly appreciated.