Skip to content

Instantly share code, notes, and snippets.

@zapsleep
Created July 29, 2013 07:49
Show Gist options
  • Save zapsleep/6102728 to your computer and use it in GitHub Desktop.
Save zapsleep/6102728 to your computer and use it in GitHub Desktop.
Interface of DVParallaxView (w/o gyro)
#import <UIKit/UIKit.h>
@interface DVParallaxView : UIView
@property (nonatomic, strong) UIImage *backgroundImage;
@property (nonatomic, strong) UIView *frontView;
@property (nonatomic) float parallaxDistanceFactor;
@property (nonatomic) float parallaxFrontFactor;
@property (nonatomic) CGPoint contentOffset;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment