Skip to content

fernandospr/FSParallaxTableView

Repository files navigation

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!

About

Parallax effect for images in table view cells

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published