Coding a static long-scroll website in node/express/backbone/stylus/dust.
We are going to have a ~400px header image that sits in a fixed position at the top of the page that then shrinks into a ~100px nav bar as you scroll downwards, then moves between a few states as you pass through various parts of the page.
What is the best way to code something like this? I know that's a very broad question, and that I don't have any code to substantiate this question, but I'm not sure what combination of CSS / scripting I would emplpy to make sure that the header shrinks, then persists, then moves between states.