项目介绍:
About
https://github.com/IvanVorobei/ParallaxTableView
Project with example of how to use the parallax. The idea is to calculate the position of the element relative to its position on the screen. Cell class has been expanded to show how to use the parallax in your projects
这是一个如何使用视差动效的示例。 这个想法是计算元素相对于其在屏幕上的位置。 单元类已经扩展,以展示如何在项目中使用视差
How use
You must inherited from classes SPParallaxTableViewController for your tableViewController and SPParallaxTableViewCell for your tableViewCell. Do not forget overide table view data source methods. In array “parallaxViews” in SPParallaxTableViewCell you nedd add views, which must show with paralax.
Advice
If you want use some small elements with paralax – place its on transparent view and add view in “parallaxViews” array
Other
In the project you will find my library Sparrow, it’s what I use. But if needed, you can easily to remove it and do not use Sparrow in their projects
Contact:
http://hello.ivanvorobei.by
http://ivanvorobei.by
hello@ivanvorobei.by