Adapts to many pages

Hi! Nice effect, and thanks for open sourcing it! I saw your comment of "It's gonna be painful here if you have a hundred pages in scrollview" so I decided to change that :). I made it so you don't have to add a new else if statement for every new page, there's just a loop that runs through them. All you do is set the number of pages.