项目
在 GitHub 查看
mayuur/MJParallaxCollectionView
关于
为 UICollectionView 中的单元格提供视差效果,类似于在 WhatsApp 中滚动图片或浏览 iOS 天气应用时的效果。
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文MJParallaxCollectionView
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
Thanks!
Follow me or ask questions or just say Hi! at Twitter : @mayuur
Watch the demo below
Photos from Unsplash
License
Usage is provided under the MIT License. See LICENSE for the full details.
探索相关项目
加载中…
