Skip to content

carabina/JT3DScrollView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JT3DScrollView

CI Status Version License Platform

JT3DScrollView is a UIScrollView with custom effects during the scroll.

Installation

With CocoaPods, add this line to your Podfile.

pod 'JT3DScrollView', '~> 1.0'

Screenshots

Example

Usage

You can use it like a classic UIScrollView, the pagingEnabled is set to YES by default and clipsToBounds is set to NO.

#import <UIKit/UIKit.h>

#import <JT3DScrollView.h>

@interface ViewController : UIViewController

@property (weak, nonatomic) IBOutlet JT3DScrollView *scrollView;

@end

You just have to set the effect.

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.scrollView.effect = JT3DScrollViewEffectCards;
}

@end

You can disable the effect and act like a classic UIScrollView by setting effect to JT3DScrollViewEffectNone.

Effects are just preset for some properties used for the animations, you can adjust all effects with:

  • angleRatio
  • rotationX
  • rotationY
  • rotationZ
  • translateX
  • translateY

All this properties are relative to the position X of the subview.

Requirements

  • iOS 7 or higher
  • Automatic Reference Counting (ARC)

Author

License

JT3DScrollView is released under the MIT license. See the LICENSE file for more info.

About

ScrollView with custom effects during the scroll for iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 55.5%
  • Shell 19.2%
  • XML 15.8%
  • Ruby 7.1%
  • C 2.4%