• Stars
    star
    137
  • Rank 266,121 (Top 6 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Parallax effect for images in table view cells

Click here to lend your support to: Fernando's Open Source Projects and make a donation at pledgie.com !

FSParallaxTableView

Parallax effect for images in table view cells.

Demo

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!