javascript - How do you make an image scroll partly? Halfway between position:fixed and position:absolute -


i want background image move up/down visitor scrolls, not scroll page. it's neither fixed screen nor scrolling rest of content. it's in between position:fixed , position:absolute.

example: http://www.madebyhangar.com/ see how says "we take pride in work , care" background image moves scroll not scroll.

i inspected page firebug , happens div element using background-image, background-position style changed (via scroll event suppose). how effect works.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -