A UIScrollView observer class that makes implementing parallax scrolling easy in iOS.
Objective-C Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
Project
Readme_Images
SYNScrollViewObserverEffects
.gitignore
CHANGELOG.md
LICENSE
README.md
Rakefile
SYNScrollViewObserverEffects.podspec

README.md

SYNScrollViewObserverEffects

Version Platform

SYNScrollViewObserverEffects is a set of classes that observe the content offset of one scrollview and generate different effects. The primary goal was to be unobtrussive and able to react to changes in a scroll view without having to be the delegate. Effects included:

  1. Parallax scrolling to show depth of UI.
  2. Enlarge a view when the scrollview is pulled down too far.
  3. An image blur of a UIImageView image.
  4. An effect to show and hide the a Navigation bar based on scrolling.

Alt text Alt text

Note: The blur effect in this library is requires iOS 7+. All else should work with at least iOS 6.

Usage

To run the example project; clone the repo, and run pod install from the Project directory first.

Using in a project can be done with the following code.

self.parallaxObserver = [[SYNParallaxScrollObserver alloc] initWithObservedScrollView:self.observed parallaxedScrollView:self.parallaxed];
[self.parallaxObserver startObserving];

Requirements

To use all of the effects iOS 7 is required.

Installation

SYNParallaxScrollObserver is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "SYNScrollViewObserverEffects"

Author

Sam Corder, sam.corder@gmail.com @SamCorder

License

SYNScrollViewObserverEffects is available under the MIT license. See the LICENSE file for more info.