I need a jquery code snippet that alters a css value (from min value to max value - both can be declared) when user scrolls a page. According to the scroll position, the CSS value (for example height) of a div should be changed "in realtime".
Let's say the scolling becomes a range between 0 and max. 200px. (When scrolled more then 200px it shouldn't affect the CSS value anymore.)
And the CSS value besomes a range between 300px and 600px.
This is what the jquery routine should do:
Scroll=0px: CSS value=300px
Scroll=100px: CSS value=450px
Scroll=200px: CSS value=600px
It's probably a very easy snippet. Could somebody maybe help me out. That would be super. Thank you very much! Best regards, Pierre