Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fernandospr/fsparallaxtableview
Parallax effect for images in table view cells
https://github.com/fernandospr/fsparallaxtableview
Last synced: about 2 months ago
JSON representation
Parallax effect for images in table view cells
- Host: GitHub
- URL: https://github.com/fernandospr/fsparallaxtableview
- Owner: fernandospr
- License: mit
- Created: 2014-06-30T19:51:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-05T14:01:29.000Z (over 7 years ago)
- Last Synced: 2024-04-16T11:03:03.297Z (9 months ago)
- Language: Objective-C
- Size: 6.51 MB
- Stars: 137
- Watchers: 8
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
FSParallaxTableView
===================Parallax effect for images in table view cells.
![Demo](https://github.com/fernandospr/FSParallaxTableView/raw/master/images/FSParallaxTableViewDemo.gif)
I have found many examples using UICollectionView, but I wanted to use a simple UITableView. That is why I decided to create this project.
## How it works
Assuming the images have a height greater than the height of the cells:
* The top cell will show the first part of its image and will hide the bottom overflow.
* The last cell will show the last part of its image and will hide the top overflow.
* The medium cell will show the middle part of its image and will hide bottom and top overflows.This is done in this method:
```
- (void)updateImageViewCellOffset:(FSParallaxTableViewCell *)cell
```
Thanks to @SebaVenditti for helping!