您的位置:首页 > 其它

MJParallaxCollectionView 视差滑动效果

2014-08-25 14:05 302 查看


UICollectionView的动画效果,滑动时让 CollectionView 的每一行产生视差(Parallax)滑动效果。



Github源地址



This is a parallax for the cells inside UICollectionView. It gives us an effect just like scrolling the images in Whatsapp or scrolling through the Weather app for iOS.

Setting it up is really simple.

Just create a NSString array contaning all the names for the images.
Set up the Collection View datasource and delegate methods.
Set the scrollViewDidScroll delegate method for your UICollectionView.
That's it. Now run!

Optionally, you can change the animation speed for the images or the height of the images in the UICollectionViewCell by chnaging the constants used in MJCollectionViewCell.h
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: