• Stars
    star
    1,247
  • Rank 36,383 (Top 0.8 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 10 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

  1. Just create a NSString array contaning all the names for the images.
  2. Set up the Collection View datasource and delegate methods.
  3. Set the scrollViewDidScroll delegate method for your UICollectionView.
  4. 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

Video

Photos from Unsplash

License

Usage is provided under the MIT License. See LICENSE for the full details.