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
相关文章推荐
- ViewPager切换时粘滞视差的效果--模仿美丽说HIGO全球买手圈的滑动效果
- ParallaxViewPager:ViewPager的视差背景效果
- 滑动tableView表单时cell图片的视差效果实现分析
- Swift中用CollectionView做广告栏滑动效果
- 使用NestedScrollView+ViewPager+RecyclerView+SmartRefreshLayout打造酷炫下拉视差效果并解决各种滑动冲突
- ParallaxViewPager:ViewPager的视差背景效果
- [翻译] MJParallaxCollectionView
- Android的Viewpager视差滑动效果小demo
- 使用NestedScrollView+ViewPager+RecyclerView+SmartRefreshLayout打造酷炫下拉视差效果并解决各种滑动冲突
- 打造丝滑的滑动视差控件(ScrollParallaxView)
- Swift - 使用CollectionView实现图片Gallery画廊效果(左右滑动浏览图片)
- ParallaxViewPager:ViewPager的视差背景效果
- 使用CollectionView做横向滑动分页效果:
- Android引导界面设计之ParallaxViewPager视差效果
- iOS下用一行代码实现tableview(collectionview)的parallax效果
- Android 滑动效果入门篇(一)—— ViewFlipper
- android-使用ViewGroup实现左右滑动切换界面的效果
- android - 滑动效果之ViewFlipper与ViewPager与Gallery
- android viewflipper 左右滑动切换显示图片效果
- 【Android】滑动屏幕效果GestureDetector、OnGestureListener、ViewFlipper