Skip to content
forked from acoomans/Parallax

Parallax is an iOS library that reproduces the parallax effect of the iOS7 home screen.

License

Notifications You must be signed in to change notification settings

HighKo/Parallax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallax

Parallax is an iOS library that reproduces the parallax effect of the iOS7 home screen.

Dependencies

  • QuartzCore
  • CoreMotion

Usage

  1. Add the Parallax directory into your project.
  2. Add #import "ACParallax.h" to your view controller.
  3. Add a ACParallax view and start the parallax effect with parallaxView.parallax = YES;

Optional:

If you want a delegate to be notified of begin/end parallax effect and changes in the motion attitude:

parallaxView.parallaxDelegate = self;

If you want the parallax view to refocus slowly and automatically:

parallaxView.refocusParallax = YES;

Screenshot

screenshots

Bugs

  • Device pitch is not handled correctly; behaves weirdly when the device is held straight up.
  • Some implementations details missing (see TODOs)

Credits

San Francisco Bridge by Jeff Gunn (Creative Commons)

About

Parallax is an iOS library that reproduces the parallax effect of the iOS7 home screen.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published