markdalgleish/stellar.js — pull request #14 by frischmilch (2012-08-23 12:00:23+00:00)
Title: Stellar limit

hey Mark,

used your awesome stellar.js on a few projects, most notably hdk.ch

but for this agency site i needed a limiting function wich I added to stellar.
a new data-stellar-attribute controls this.

if the parent reaches the top, the scrollspeed of all limited elements is set to 1.

the logic might not be perfect, I also added it only to vertical parallaxing.
in my demo, I am using iScroll4 on iOS and switch with modernizr.

My repo is not following your branch, sorry, I created my own files for testing, you can try and test my repo and consider a manual merge.

Thanks again for this great and easy parallax approach.

—Johannes