Search code examples
javascriptjqueryscrollparallax

jquery scrolling effect approach(scrollpoints, horizontal scroll "hijack")


Probably not the best title, but what I'm looking for is the best approach to create a site with effect similar to this http://www.mdot.it/ "hijacked" vertical scrolling.

Basically I'd know how to do it were it only scrolling down(i.e. if scroll position is 100, fade something out, set something to fixed etc), what I can't get my head around is how to make it work both directions unless I'd use some crazy conditions and stuff.

Can't find the right word to call this effect either, everything I searched for resulted in paralax plugins..

Any tips/patterns/links that would help me?

Thanks!

// edit what mdot is doing is split the whole page into frames(1px 1 frame) and then assign styles for all 52 elements to each frame, so every scrolled pixel there is 52 styles being set.. there has to be a better way, or?


Solution

  • Maybe skrollr is what you want. It's very lightweight and doesn't get in your way.