https://github.com/allaboutapps/a3parallaxscrollview
A UIScrollview subclass with a high performance parallax scrolling effect
https://github.com/allaboutapps/a3parallaxscrollview
id-allaboutapps-x-deprecated
Last synced: 12 months ago
JSON representation
A UIScrollview subclass with a high performance parallax scrolling effect
- Host: GitHub
- URL: https://github.com/allaboutapps/a3parallaxscrollview
- Owner: allaboutapps
- License: other
- Created: 2012-11-23T09:53:38.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T00:35:58.000Z (about 9 years ago)
- Last Synced: 2025-05-16T20:48:18.541Z (about 1 year ago)
- Topics: id-allaboutapps-x-deprecated
- Language: Objective-C
- Homepage:
- Size: 15.1 MB
- Stars: 253
- Watchers: 31
- Forks: 41
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
#What is A3ParallaxScrollView?
**A3ParallaxScrollView** is a `UIScrollView` subclass with a parallax scrolling effect on iPhone and iPad.
It is written in *Objective-C* and works for all iOS applications using ARC.
##Video:
Here are two examples of the use of **A3ParallaxScrollView**.
The first is a little Demo with a lot of views and additional custom transformations (sine movement of the moon).
The other one shows a *Path* like scrolling behaviour.


Both sample projects are included in the github repository.
##Installation
###With CocoaPods:
A3ParallaxScrollView is available on [CocoaPods](http://cocoapods.org) . Just add the following to your project Podfile:
####Podfile
platform :ios, '7.0'
pod "A3ParallaxScrollView", "~> 1.0"
###Manualy:
Download the `A3ParallaxScrollView.h/.m` files and add them to your Project. There are no dependencies.
##Usage:
Include **A3ParallaxScrollView** by the folowing import.
#import "A3ParallaxScrollView.h"
Initialize a **A3ParallaxScrollView** like any regular `UIScrollView` by code or in the InterfaceBuilder.
#### Update Accelerations
You can add any views to it with a specified acceleration:
`- (void)addSubview:(UIView *)view withAcceleration:(CGPoint) acceleration`
Or you can simply add a subview to your **A3ParallaxScrollView** and set his acceleration afterwards with acceleration setter.
`- (void)setAcceleration:(CGPoint) acceleration forView:(UIView *)view`
#License:
[See our MIT License](https://github.com/allaboutapps/A3ParallaxScrollView/blob/master/LICENSE)
#Contribute:
Feel free to fork and make pull requests! We are also very happy if you tell us about your app(s) which use this control.

[© allaboutapps 2014](http://www.allaboutapps.at) [dev by Botond Kis](https://github.com/yinkou)