https://github.com/johnvuko/jt3dscrollview
ScrollView with custom effects during the scroll for iOS
https://github.com/johnvuko/jt3dscrollview
carousel ios scrollview swift uiscrollview
Last synced: 12 months ago
JSON representation
ScrollView with custom effects during the scroll for iOS
- Host: GitHub
- URL: https://github.com/johnvuko/jt3dscrollview
- Owner: johnvuko
- License: mit
- Created: 2014-11-28T12:43:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-06-07T00:46:58.000Z (almost 9 years ago)
- Last Synced: 2025-03-30T14:11:21.440Z (about 1 year ago)
- Topics: carousel, ios, scrollview, swift, uiscrollview
- Language: Shell
- Homepage:
- Size: 485 KB
- Stars: 491
- Watchers: 18
- Forks: 72
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JT3DScrollView
[](https://travis-ci.org/jonathantribouharet/JT3DScrollView)



JT3DScrollView is a UIScrollView with custom effects during the scroll.
## Installation
With [CocoaPods](http://cocoapods.org/), add this line to your Podfile.
pod 'JT3DScrollView', '~> 2.0'
## Screenshots

## Usage
You can use it like a classic UIScrollView, the `isPagingEnabled` is set to `true` by default and `clipsToBounds` is set to `false`.
```swift
import UIKit
import JT3DScrollView
class ViewController: UIViewController {
@IBOutlet weak var scrollView: JT3DScrollView?
override func viewDidLoad() {
super.viewDidLoad()
scrollView?.effect = .cards
}
}
```
You can disable the effect and act like a classic `UIScrollView` by setting `effect` to `.none`.
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 8 or higher
- Swift 3.0
## Author
- [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))
## License
JT3DScrollView is released under the MIT license. See the LICENSE file for more info.