учебник http://tympanus.net/codrops/2013/07/16/on-scroll-header-effects/ (en)

пример http://tympanus.net/Development/HeaderEffects/